Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cmackenz

    Way to WAIT for ShellExecute process to complete?

    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...
  2. cmackenz

    Way to WAIT for ShellExecute process to complete?

    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...
  3. cmackenz

    Way to WAIT for ShellExecute process to complete?

    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...

Part and Inventory Search

Back
Top