China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 00:34
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Redirection stopped working, experts please give me some pointers. View 821 Replies 1
Original Poster Posted 2010-08-26 12:25 ·  中国 天津 联通
新手上路
Credits 2
Posts 2
Joined 2010-08-25 13:34
15-year member
UID 172969
Gender Male
Status Offline
@echo off
set vv=c d e
cd .> log.txt
for %%a in (%vv%) do (
cd /d %%a:
for /r %%b in (*.iso) do (
echo %%b >> log.txt
pause
)
)

Why is the LOG.TXT file empty? If I turn on echo and don't redirect to a file, I can see the files it finds. I'm a DOS newbie, please help me out, experts. Thanks!
Floor 2 Posted 2010-08-31 10:40 ·  中国 天津 联通
新手上路
Credits 2
Posts 2
Joined 2010-08-25 13:34
15-year member
UID 172969
Gender Male
Status Offline
Are all the experts not at home? No one is helping me :-(

I'll take the first reply myself and wait for help, bumping the thread.
Forum Jump: