0

I'm trying to run script below. The first program start up just fine but the second one with the blank spaces in the path name doesn't. How can this be resolved? Thanks.

    Set Shell = WScript.CreateObject("WScript.Shell")
    Shell.Run "cmd /n,C:\Windows\System32\", 4, False
    Shell.Run "sublime_text /n,C:\Program Files\Sublime Text 3\", 4, False
1

1 Answer 1

-1

Solved it by following link below. I rewrote the last statement with 3 double quotes.

How to call Run() with parameters

Set Shell = WScript.CreateObject("WScript.Shell")
Shell.Run "cmd /n,C:\Windows\System32\", 4, False
Shell.Run """C:\Program Files\Sublime Text 3\sublime_text.exe""", 4, False
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.