windows - How can I create a shortcut to launch a batch file one folder up? -
i have been trying create shortcut launch batch file 1 folder shortcut location. have been able using , intermediate batch file in same folder shortcut follows: intermediate.bat:
@echo off %%v in ("%~dp0..\") set curdrv=%%~dpv start "" %curdrv%oneup.bat
and shortcut target is: %windir%\system32\cmd.exe /c intermediate.bat
and 'start in' left blank.
this way can move these folders anywhere on drive or drive , shortcut still works. however, leave out intermediate.bat file , launch oneup.bat directly. tried:
%windir%\system32\cmd.exe /c %%v in ("%~dp0..\") set curdrv=%%~dpv && start "" %curdrv%oneup.bat
in target of shortcut, doesn't work.
is there trick getting work?
i think found answer:
%windir%\system32\cmd.exe /c start "" "..\oneup.bat"
this placed in shortcut target start in being left empty.
Comments
Post a Comment