- ::获取ie缓存文件夹位置
- set zcb=
- set hc=
- set weizhi=
- set "zcb=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"
- for /f "tokens=1* delims=Z" %%i in ('reg query "%zcb%" /v cache') do set "weizhi=%%j"
- set "hc=%weizhi:~1%"
- for /f "tokens=* delims= " %%i in ("%hc%") do set "hc=%%i"
- echo ie缓存文件夹位置:%hc%
复制代码 能解释第8行有什么作用吗?谢谢!
for /f "tokens=* delims= " %%i in ("%hc%") do set "hc=%%i" |