Sorry if I'm missing something obvious. The 'Exec' method will let me wait for return, but can I somehow pass "RUNAS" to that? I don't see the option with the 'Exec' method that I see with the 'ShellExecute' method. Similarly, I don't see an option with 'ShellExecute' that lets me wait for...
Thank you, mrmovie, but I don't think that's what I'm after. How would you add privilege elevation for Vista to this? With the ShellExecute command, I don't need to specify a specific user name/password, but just specify "runas" and I end up prompted to click a button to allow admin access to...
I have a line of code:
objShell.ShellExecute strApp, strCommand, "", "RunAs", 1
strApp is either cscript.exe and wscript.exe
strCommand is the path of a .wsh file that I create to run a second script.
I need my main script to run this command, and then WAIT for the strApp to finish before...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.