中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 06:46
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Help] String Interception Problem in For Result Set, Definitely Give Points!
Printable Version  1,919 / 16
Floor16 terse Posted 2007-06-30 14:56
银牌会员 Posts 946 Credits 2,404
This is universal either
@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%i in ('dir download /b/s *.gho') do (
set a=%%i
set a=!a:C:\download\=!
echo !a!
)
pause
Floor17 qinbuer Posted 2007-06-30 15:04
高级用户 Posts 228 Credits 512
Re: wudixin96 brother

I was negligent. You need to use CMD /V:ON, then for /f "delims=" %i in ('dir /a-d /b /s download') do set var=%i & @echo !var:C:\download=!
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023