I am really new to VBScripts and am kinda learing as I go. What I am currently struggling with is trying to run an executable that is located within a directory in program files. If I run it from c:\temp\runme.exe it works fine but if I use the same script and run it from c:\program files\temp\runme.exe it fails. below is the script I am using. Can someone tell me what I am doing wrong?
Set Wshshell=CreateObject("WScript.Shell")
Dim WshShell, wn
WshShell.run "c:\program files\smsinstall\winzip9install\winzip32.exe /autoinstall
Set Wshshell=CreateObject("WScript.Shell")
Dim WshShell, wn
WshShell.run "c:\program files\smsinstall\winzip9install\winzip32.exe /autoinstall