I've created 2 batch files. The first called admin.bat with the lines:
@echo off
cls
runas /env /user:ADOMAIN\Administrator "\\path\dir\explorer.bat"
and the other called explorer.bat with the lines:
explorer.exe /separate, %userprofile%\desktop
explorer.exe /separate, \\path\dir
Now you can see the first batch launches the second with Admin priviledges but when the second launches I can see %userprofile%\desktop but the cmd window stalls and doesn't run the second command:
explorer.exe /separate, \\path\dir
If I close the %userprofile%\desktop window the second command pops-up the \path\dir.
In short, all I want to make is a runas command that launches 2 explorer.exe instances entering the admin password just once...Can anyone help me?