start-process c:\windows\system32\cmd.exe '/c "C:\Program Files\software\do.bat"'
Note the following:
- There is a space in 'Program Files'
- The technique here is to wrap all the arguments between single quotes, and within that construct you wrap the path between double quotes.
No comments:
Post a Comment