decoy5657 Posted January 31, 2005 Share Posted January 31, 2005 For personal reasons I need to install apps via VBS.Here is a code sample from my srcipt.'----START VARIABLES----Dim StrWIMP'----END VARIABLES----Set oShell = CreateObject("Wscript.Shell") strWIMP = Chr(34) & """mp10setup.exe""" & Chr(34) & " /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore""oShell.Run "%comspec% /c " & strWIMP, 1, trueThus far, this has worked for all other software, but if you run that script, it gives an error about the " right after C: I assume the script host thinks I want to end that statement... or something....Ideas? Thoughts? Link to comment Share on other sites More sharing options...
top_pops Posted January 31, 2005 Share Posted January 31, 2005 Need to escape the internal double-quotes around setup_wm...SystemRestoreTry thisstrWIMP = Chr(34) & """mp10setup.exe""" & Chr(34) " /q:A /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore""" Link to comment Share on other sites More sharing options...
Dahi Posted February 1, 2005 Share Posted February 1, 2005 strWIMP = "mp10setup.exe /q:A /c:""setup_wm.exe /Q /R:N /DisallowSystemRestore"""oShell.Run "%comspec% /c " & strWIMP, 1, trueorstrWIMP = "mp10setup.exe /q:A /c:" & chr(34) & "setup_wm.exe /Q /R:N /DisallowSystemRestore" & chr(34)oShell.Run "%comspec% /c " & strWIMP, 1, trueshould work Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now