I, could you please help me out .. i can't get any further.
I'm working on a batch file which will start a vbs script.
This vbs scripts needs te be run in administrator mode (runas).
My code looks like this now:
start /w runas.exe /U:vpnl\administrator "cmd /k net use h: \\vpnl001\shared_home /USER:vpnl\jumping"
so far so good (i think).
But this line opens a new dos box in which i cannot start the script ...
who can help me out ..
Runas and two boxes
Moderator: DosItHelp
-
- Posts: 79
- Joined: 13 Dec 2010 10:32
Re: Runas and two boxes
Try a simpler line:
Code: Select all
runas.exe /user:vpnl\administrator "net use h: \\vpnl001\shared_home /USER:vpnl\jumping"