Batch file caveat when running as administrator
if you want to run the script in the folder where the script is store you can add the following code@ECHO %0 %*@pushd@cd /D "%~dp0"@cd....@pause@popdin most case %0 is the name of the script including the full path%~dp0 is only the drive and the path of the scriptcd...
if you want to run the script in the folder where the script is store you can add the following code
@ECHO %0 %* @pushd @cd /D "%~dp0" @cd .... @pause @popdin most case %0 is the name of the script including the full path %~dp0 is only the drive and the path of the script cd /D "%~dp0" changes the drive and the working path to the path of the script HTH Reto