P
Phillip Galey
If you want to run a program from a batch file that requires two entries,
e.g. the program command line and then a password like with RUNAS in Windows
2000, is there a way of doing that? RUNAS was interestingly designed to be
run as a two step process and does not allow the password to be included in
the command line.
If I do the following in a batch file, it still stops and asks me for the
password:
--------------------------------------------------
RUNAS /profile /user:MyDomain\MyUsername "xcopy c:\myfile.txt c:\elsewhere"
MyPassword
--------------------------------------------------
Is there a way of automatically taking care of RUNAS's request for the
password? Thanks.
Phil
e.g. the program command line and then a password like with RUNAS in Windows
2000, is there a way of doing that? RUNAS was interestingly designed to be
run as a two step process and does not allow the password to be included in
the command line.
If I do the following in a batch file, it still stops and asks me for the
password:
--------------------------------------------------
RUNAS /profile /user:MyDomain\MyUsername "xcopy c:\myfile.txt c:\elsewhere"
MyPassword
--------------------------------------------------
Is there a way of automatically taking care of RUNAS's request for the
password? Thanks.
Phil