如何转义路径名中的空格-Windows脚本

如何转义路径名中的空格-Windows脚本,windows,wsh,Windows,Wsh,我正在尝试运行下面的脚本。第一个程序启动得很好,但是第二个程序在路径名中没有空格。如何解决这个问题?谢谢 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 通过下面的链接解决了这个问

我正在尝试运行下面的脚本。第一个程序启动得很好,但是第二个程序在路径名中没有空格。如何解决这个问题?谢谢

    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

通过下面的链接解决了这个问题。我用3个双引号重写了最后一句话

可能重复的
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