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.
The runas command is the first thing I would think of.
There is also some help available from:
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
|admin, batch, dos, pushd|
|Thread||Thread Starter||Forum||Replies||Last Post|
|PHP read file contents - Maximum file size||cksraj||Programming||1||21st September 2009 12:38 PM|
|Required packages for running X||enpey||FreeBSD Ports and Packages||7||20th August 2008 10:16 AM|
|file:///||mfaridi||FreeBSD Security||3||27th July 2008 03:18 PM|
|VSFTPd: pid file||kostromin||FreeBSD Ports and Packages||0||4th July 2008 09:35 AM|
|How to get NAT log file on FreeBSD ?||chamnanpol||FreeBSD General||1||18th June 2008 12:49 AM|