How do I open a elevated command prompt using command lines on a normal cmd?
For example, I use runas /username:admin cmd but the cmd that was opened do
sudo.bat (you can replace sudo with any name you want) with following content
powershell.exe -Command "Start-Process cmd \"/k cd /d %cd%\" -Verb RunAs"
sudo.bat to a folder in your PATH; if you don't know what that means, just move these files to c:\windows\sudo will work in Run dialog (win+r) or in explorer address bar (this is the best part :))sudo.bat (you can replace sudo with any name you want) with following content
nircmdc elevate cmd /k "cd /d %cd%"
nircmdc.exe and sudo.bat to a folder in your PATH; if you don't know what that means, just move these files to c:\windows\sudo will work in Run dialog (win+r) or in explorer address bar (this is the best part :))