中国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-13 13:43
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » [Help] About creating a newly created text .bat file
Printable Version  1,386 / 1
Floor1 story0119 Posted 2006-12-27 07:05
新手上路 Posts 3 Credits 8
I want to write a .bat file with the following requirements:

Create an e:\123.bat
The contents are: [copy]
410$a=225$a
905$f=690$a

I wrote one myself:
copy con e:\123.bat
[copy]
410$a=225$a
905$f=690$a

But I just can't get the result I want.
Could some expert please give me some advice```Thank you :D
Floor2 lxmxn Posted 2006-12-27 08:02
版主 Posts 4,938 Credits 11,386

  copy con e:\123.bat is an interactive process. If you don't use Ctrl+Z and press Enter to confirm the end, then the batch file won't terminate either. If you simply want to write text into it, you can consider commands like echo, type, more, etc.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023