tags:

views:

40

answers:

1

Lets say that i open 1.bat which opens 2.bat i want the 3.bat to open with rights of the user current logged in and doesn't prompt for password Edit:i forgot to tell that 1.bat runs under system

A: 

If the user runs 1.bat, and 1.bat runs 2.bat, and 2.bat runs 3.bat, then 3.bat will run as the user account that executed 1.bat. There is no need to do anything different.

Edit: Since the problem is that 1.bat is ran as system, then this changes things.

Try this idea. Use the runas command. Now, that will prompt you for a password, but I bet you could get around this by echoing the text of your password to the standard input.

Brad
i forgot to tell that 1.bat runs under system
geocheats2
See my latest edit, and edit your question to include that information... it is key to your problem.
Brad

related questions