comp.lang.ada
 help / color / mirror / Atom feed
* How to call a Windows executable from Ada?
@ 2021-12-08 23:04 Marius Amado-Alves
  2021-12-09  5:09 ` Randy Brukardt
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Marius Amado-Alves @ 2021-12-08 23:04 UTC (permalink / raw)


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.

Thanks.

[1] https://www.adacore.com/gems/gem-54
[2] https://rosettacode.org/wiki/Execute_a_system_command#Ada

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-12-09 19:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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