本帖最后由 terse 于 2013-9-4 18:15 编辑
- @echo off
- for /f "delims=" %%a in ('more "狙击.jgs.lnk" ^| findstr /ib [a-z]:\\') do set "lnk=%%a"
- echo %lnk%
- pause
复制代码 d:\我的文档\军旗\明\junqi2012_2_16_23_5.jgs
请按任意键继续. . .- @echo off
- set "folder=%userprofile%\「开始」菜单\程序\"
- for /f "delims=" %%a in ('dir /b /a-d /s "%folder%\*.lnk"') do (
- for /f "delims=" %%b in ('more "%%a" ^| findstr /ib [a-z]:\\') do (
- echo "%%a" "%%b"
- )
- )
- pause
复制代码
|