
shell command with space in path/file name does not work
maybe try using
Shell """c:\program files\Windows NT\Accessories\wordpad.exe
c:\program files\sfstart.txt""", vbMaximizedFocus
this will insert a double quote into the string which is commonly
necessary when dealing with "long" path names...
D.
Quote:
> I am trying to use the shell command to start wordpad and
> then load a text file. It works fine if the path does not
> have a space for example: "c:\test\test.txt"
> However, when the patch contains a space I cannot get it
> to work. This is the command I am trying to execute.
> Shell "c:\program files\Windows NT\Accessories\wordpad.exe
> c:\program files\sfstart.txt", vbMaximizedFocus
> Any help would be greatly appreciated.