Hi Guys,
The script is designed to open a command prompt window in the file manager folder being viewed. A simple task and simple code.
@echo off :: Check for Run as Admin :: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights net sessions >nul 2>&1 if %errorLevel% == 0 ( echo Running as Admin. echo. pause ) ::@START /MAX cmd /K mode Con Lines=2000 Cols=100 @START cmd /K mode Con Lines=2000 Cols=100
The problem is if the script is run as admin the command prompt window opens to the c:\Windows\system32 folder not the folder the script is in.
Any suggestions?