You need to put in quotes, Chr$(34), around any path that contains
spaces:
Shell "wscript.exe " & Chr$(34) & "C:\Documents\My system\test.vbs" _
& Chr$(34), 1
The string passed to Shell is a DOS command line, which considers
spaces to be separators between multiple arguments. In your example,
it considers "C:\Documents\My" to be the (invalid) first argument, and
"system\test.vbs" to be a second (unused) argument.
Another point: wscript.exe is *not* in C:\Windows (unless you moved
it); as Steve said, it's in C:\Windows\system32. If you specify the
path as you did, the macro will say "file not found". Since the
system32 folder is in the Path environment variable by default,
wscript.exe will be found if you don't specify the path at all.
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.