VB Script and filename with space
        Posted  
        
            by Ram
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ram
        
        
        
        Published on 2010-05-06T14:51:41Z
        Indexed on 
            2010/05/06
            14:58 UTC
        
        
        Read the original article
        Hit count: 290
        
Hi
I wrote a VBS file to open the "6 May" folder with following content
path = "F:\Test\2010\May\6 May"
Set Sh = CreateObject("WSCript.Shell")
Sh.Run ""path"",3,True
Set Sh = Nothing 
However on executing this I am getting following error
Windows Script Host
Script: F:\Sperry\2010\May_06 May\open.vbs Line: 4 Char: 10 Error: Expected end of statement Code: 800A0401 Source: Microsoft VBScript compilation error
OK
Can anyone help me in this?
© Stack Overflow or respective owner