Subj : system.exec() and commands in double-quotes
To   : Digital Man
From : Nightfox
Date : Thu Apr 10 2025 04:42 pm

 Re: system.exec() and commands in double-quotes
 By: Digital Man to Nightfox on Thu Apr 10 2025 03:47 pm

>>>> 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

>  ph>> What if you do something silly and put the whole thing in one set of
>  ph>> quotes, then escape the quotes inside?

>> That seems to work..  Thanks for the suggestion.  And it seems to only be
>> necessary on Windows.

DM> Maybe share the code?

It's failry simple, basically just adding double-quotes around the whole command if you know the command has multiple sets of double-quotes.

I pasted the section of code on Pastebin:

https://pastebin.com/pPXfHKeP

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com