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-07-02 19:59
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [New Question] Output text to a specified line in pure DOS View 2,858 Replies 15
Floor 16 Posted 2008-09-22 22:12 ·  中国 广东 广州 电信
初级用户
Credits 30
Posts 13
Joined 2005-10-11 00:37
20-year member
UID 43336
Status Offline
After replacing command.com with 4dos.com in config.sys, executing
for /f "takons=1,2 delims= " %a in ('date/t') do echo %b
returns the result echo is off, meaning %b is empty. Originally, it was thought to be a string in the format of month-day-year. I originally wanted to set the variable date to the current date, but I didn't know how to achieve it. I looked at the help of 4dos, and such a for statement is supported.
Forum Jump: