find 当前离线
少将
@echo off setlocal enabledelayedexpansion rem 假设原来的盘符是C set oldDrive=C:\ rem 假设新的盘符是D set newDrive=D:\ for %%a in (*.lnk) do ( for /f "tokens=2 delims==" %%h in ('shortcut /f:"%%a" /a:q ^| findstr "TargetPath="') do ( set target=%%h ) for /f "tokens=2 delims==" %%h in ('shortcut /f:"%%a" /a:q ^| findstr "WorkingDirectory="') do ( set working=%%h ) set target=!target:%oldDrive%=%newDrive%! set working=!working:%oldDrive%=%newDrive%! shortcut /f:"%%a" /a:e /t:"!target!" /w:"!working!" )复制代码
评分人数
hacker85 当前离线
五级士官
TOP
9zhmke 当前离线
等待验证会员
for %%a in (*.lnk /s) do (复制代码
for /f %%a in ('dir *.lnk /s /b') do (复制代码
刘串 当前离线
列兵