![]() |
|
Other OS Any other OS such as Microsoft Windows, BeOS, Plan9, Syllable, and whatnot. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
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. |
|
||||
![]()
Welcome!
The runas command is the first thing I would think of. See http://technet.microsoft.com/en-us/l.../bb490994.aspx There is also some help available from: > runas /?
|
![]() |
Tags |
admin, batch, dos, pushd |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
Required packages for running X | enpey | FreeBSD Ports and Packages | 7 | 20th August 2008 09:16 AM |
file:/// | mfaridi | FreeBSD Security | 3 | 27th July 2008 02:18 PM |
VSFTPd: pid file | kostromin | FreeBSD Ports and Packages | 0 | 4th July 2008 08:35 AM |
How to get NAT log file on FreeBSD ? | chamnanpol | FreeBSD General | 1 | 17th June 2008 11:49 PM |