Runas and two boxes

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Jumping
Posts: 1
Joined: 16 Dec 2010 10:30

Runas and two boxes

#1 Post by Jumping » 16 Dec 2010 10:36

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 ..

ChickenSoup
Posts: 79
Joined: 13 Dec 2010 10:32

Re: Runas and two boxes

#2 Post by ChickenSoup » 21 Dec 2010 14:29

Try a simpler line:

Code: Select all

runas.exe /user:vpnl\administrator "net use h: \\vpnl001\shared_home /USER:vpnl\jumping"

Post Reply