0
CreateObject("wscript.shell").run """C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe"""

The above command works, but the following does not work.

CreateObject("wscript.shell").run """C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe" -m "Back up a USB device"""

How do I make the argument -m "Back up a USB device" work?

Matthew Wai
  • 962
  • 7
  • 14
  • 1
    By getting the escaped quotes right. `CreateObject("wscript.shell").run """C:\Program Files (x86)\2BrightSparks\SyncBackFree\SyncBackFree.exe"" -m ""Back up a USB device"""`. – user692942 Feb 24 '20 at 07:47

1 Answers1

0

Try This :

CreateObject("wscript.shell").run """%ProgramFiles(x86)%\2BrightSparks\SyncBackFree\SyncBackFree.exe ""-m"" Back up a USB device"""

Double quotes : Link