ToTargetFolder.bat- @echo off
-
- set fileName=%1
- set fileName=%fileName:\=\\%
- echo fileName=%fileName%
-
- for /f "tokens=* skip=1" %%i in ('WMIC Path Win32_ShortcutFile Where Name^=%fileName% Get Target') do (
- echo explorer /e,/select,%%i
- start "" explorer /e,/select,%%i
- goto :EOF
- )
复制代码 把它注册到lnkfile的shell下方,就可以直接在快捷方式上右键打开文件位置了。 |