brucelim80 Posted February 18, 2008 Posted February 18, 2008 Hi can anyone help me with this problem? I would like to use the Rusasset command to run a VBS script. The following command is shown as below; RunAsSet('rspsgh0005', 'HBAP','*rsprsp05') Set WshShell = CreateObject("WScript.Shell") WshShell.Run "cscript.exe""\\136.121.2.42\vm\scripts\updatepolicy.vbs" It shows me error on Set WshShell = CreateObject("WScript.Shell") statement ==> Missing separator character after keyword.: How do i modify this code or is there a better way to run this script updatepolicy.vbs Can anyone help me? Thank you
Danny35d Posted February 18, 2008 Posted February 18, 2008 Welcome to autoit. This is out of the helpfile RunAsSet. Initialise a set of user credentials to use during Run and RunWait operations. 2000/XP or later ONLY.RunAsSet('rspsgh0005', 'HBAP','*rsprsp05') RunWait(@ComSpec & ' /c cscript.exe "\\136.121.2.42\vm\scripts\updatepolicy.vbs"', @ScriptDir, @SW_SHOW) AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
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