Im writing a small VBScript that i will pass a file path to. It works fine when the file name has no spaces but not when it does.
As far as I can tell, this is the offending line:
If util.Run("c:\program files (x86)\microsoft office\office14\PPTVIEW.exe " & WScript.Arguments(1)) = True Then
...perfomrm tasks...
End If
I have tried putting quotes around WScript.Arguments(1) but i still get errors. Any ideas on how I can get it to work?