:Get possible locations where the script could be installed :------------------------------------------------------- for /f "delims=" %%a in (C:\WINDOWS\system32\locations.txt) do if exist %%a set workingPath=%%a set scriptPath="%workingPath%\backup\projectBackup.bat" :Run it with the appropriate arguement :------------------------------------------------------- %scriptPath% all pause