![]() |
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-10-27 08:15 |
47,815 topics / 349,928 posts / today 0 new / 48,289 members |
| DOS启动盘 & LOGO技术 (启动盘室) » How do I assign an input string to a specified file in a batch file? |
| Printable Version 1,696 / 2 |
| Floor1 cqsquall | Posted 2003-08-01 00:00 |
| 中级用户 Posts 37 Credits 215 | |
|
For example:
Execute this in autoexec.bat: please input a word: welcome Then “welcome” is automatically assigned to the file welcome.cfg: word=welcome |
|
| Floor2 Roy | Posted 2003-08-01 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
| Floor3 pillow | Posted 2006-08-25 19:35 |
| 初级用户 Posts 82 Credits 196 | |
|
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? |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |