Subj : system.exec() and commands in double-quotes To : Digital Man From : Nightfox Date : Wed Apr 09 2025 17:16:51 Re: system.exec() and commands in double-quotes By: Digital Man to Nightfox on Tue Apr 08 2025 09:54 pm DM> No, the double-quotes won't be removed. system.exec() is just a very-thing DM> wrapper around system(): DM> Did you escape the double-quotes in the JS string passed to system.exec()? DM> I think there's something else at play here. I did a bit more investigation. Since you say system.exec() is a wrapper around system(), I'm wondering if there may be a bug in system(). It seems that the issue happens when there are multiple things in double-quotes. I tried having it only run the converter program (so, the whole command was the fully-pathed executable in double-quotes), and that ran successfully. In the command line I was trying to use, I have multiple things in double-quotes: The fully-pathed executable is first, then possibly some command-line parameters, and a source filename and an output filename. The fully-pathed executable, source filename, and output filename are all within their own set of double-quotes (in case there are spaces in their paths), and it seems that's when this issue happens where the Windows command interpreter only seems to be seeing "C:\Program" as the executable and fails due to that - even though the executable filename is in double-quotes. If I remove the double-quotes around the source filename & destination filename, so that there's only one set of double-quotes in the command line (around the executable), then it succeeds. Nightfox --- þ Synchronet þ Digital Distortion: digitaldistortionbbs.com .