comp.lang.ada
 help / color / mirror / Atom feed
From: Vadim Godunko <vgodunko@gmail.com>
Subject: Re: How to call a Windows executable from Ada?
Date: Wed, 8 Dec 2021 23:26:44 -0800 (PST)	[thread overview]
Message-ID: <313a7e4b-b98b-405e-957b-af65c822abd5n@googlegroups.com> (raw)
In-Reply-To: <71f3752c-40a2-4678-9451-1223a776b384n@googlegroups.com>

On Thursday, December 9, 2021 at 2:04:40 AM UTC+3, amado...@gmail.com wrote:
> Any *effectively working* solution for calling an external Windows executable, with arguments, from inside Ada? 
> 
> For example, the following command runs fine when given on the Windows command line: 
> 
> "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE" /f "C:\long path\with spaces\and accented letters\like in the words\declaração de autorização.docx" /mSave_As_Txt 
> 
> The same command FAILS when called from inside Ada with any of the know "solutions" on GNAT gem [1] and Rosetta Code [2]. 
> 
> But there must be a way! 
> 
> Share your good code. 
> 
See https://github.com/AdaCore/spawn

  parent reply	other threads:[~2021-12-09  7:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-08 23:04 How to call a Windows executable from Ada? Marius Amado-Alves
2021-12-09  5:09 ` Randy Brukardt
2021-12-09  7:26 ` Vadim Godunko [this message]
2021-12-09  7:29 ` Dmitry A. Kazakov
2021-12-09  9:28   ` Marius Amado-Alves
2021-12-09 18:38     ` Dennis Lee Bieber
2021-12-09 19:27     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox