For example, a malformed directory with a dot, such as: MD C:\Folder...\ ,in CMD it is displayed as C:\Folder..
Using GetFolder in VBS is invalid:
set sh=CreateObject("Wscript.Shell")
set FSO=CreateObject("Scripting.FileSystemObject")
For each i in Wscript.Arguments
Set FO=FSO.GetFolder( i ) 'This step often goes wrong, can't find the path
Sh.Run "Explorer " & FO.ShortPath 'Open with the short path of the directory
Next
[ Last edited by wewebb on 2010-12-28 at 21:19 ]
Using GetFolder in VBS is invalid:
set sh=CreateObject("Wscript.Shell")
set FSO=CreateObject("Scripting.FileSystemObject")
For each i in Wscript.Arguments
Set FO=FSO.GetFolder( i ) 'This step often goes wrong, can't find the path
Sh.Run "Explorer " & FO.ShortPath 'Open with the short path of the directory
Next
[ Last edited by wewebb on 2010-12-28 at 21:19 ]
