Below is my code. It works fine when I pass a file in without any spaces in the name; however, when a filename has a space in it, it quits reading the filename at the space and never executes. I could I pass the filename in so it reads the space as part of the filename. It is passed using a Resonse.write statement in C#.
Sub openDocument(file)
Set oShell = CreateObject("Wscript.Shell")
oShell.run file
End Sub
Sub openDocument(file)
Set oShell = CreateObject("Wscript.Shell")
oShell.run file
End Sub