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-24 02:44
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » How do I assign an input string to a specified file in a batch file? View 1,526 Replies 2
Original Poster Posted 2003-08-01 00:00 ·  中国 广东 深圳 电信
中级用户
Credits 215
Posts 37
Joined 2003-07-28 00:00
22-year member
UID 7640
Gender Male
Status Offline
For example:
Execute this in autoexec.bat:
please input a word: welcome
Then “welcome” is automatically assigned to the file welcome.cfg:
word=welcome
Floor 2 Posted 2003-08-01 00:00 ·  中国 香港
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 3 Posted 2006-08-25 19:35 ·  中国 上海 浦东新区 电信
初级用户
★★
Credits 196
Posts 82
Joined 2005-09-26 11:31
20-year member
UID 42842
Status Offline
The method in reply #2 doesn't seem to work, does it?
FC con nul /lb1 /n |FIND "1:" > %temp%.\t2.bat
Does this line work?
Forum Jump: