View Single Post
  #1   (View Single Post)  
Old 12th June 2009
a6zj6 a6zj6 is offline
New User
 
Join Date: Jun 2009
Posts: 1
Default Dos batch file administrator privileges required

This is my first post, so here goes...

I have written a dos batch file that makes use of the "pushd" command. On my network, in order to use this command elevated privileges are required. Is it possible to do the following in one batch file, and if so, how (because I can't seem to figure it out!)?

Prompt user running batch file for administrator password
Re-run same batch file only with elevated privileges
Skip administrator prompt and execute other commands in the file

Also, is it possible to pass variables to a new command prompt window that is spawned?

I was hoping to do the above with one batch file.
Reply With Quote