Page 1 of 1
Issue with quoting runret command
Posted: 14 May 2018 21:57
by zBernie
I've tried numerous quoting permutations of the runret command below, and none have worked. Can someone please tell me how to quote this?
text runret("""cmd /c C:\Windows\System32\Robocopy.exe"" ""C:\Users\bernie\AppData\Roaming\XYplorer Backup"" ""C:\Users\bernie\Desktop\XYplorer""" /MIR);
-Thanks
Re: Issue with quoting runret command
Posted: 14 May 2018 22:08
by highend
/MIR is NOT inside the command block and you don't need cmd to invoke a standalone command line tool like robocopy
Easiest way:
Code: Select all
text runret("""robocopy.exe"" ""C:\Users\bernie\AppData\Roaming\XYplorer Backup"" ""C:\Users\bernie\Desktop\XYplorer"" /MIR");
Re: Issue with quoting runret command
Posted: 14 May 2018 22:28
by zBernie
highend wrote:/MIR is NOT inside the command block and you don't need cmd to invoke a cmd tool like robocopy
Easiest way:
Code: Select all
text runret("""robocopy.exe"" ""C:\Users\bernie\AppData\Roaming\XYplorer Backup"" ""C:\Users\bernie\Desktop\XYplorer"" /MIR");
Thank you. That's a lot of quotes!
