decoy5657 Posted January 31, 2005 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?
top_pops Posted January 31, 2005 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"""
Dahi Posted February 1, 2005 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now