![]() |
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-02 22:48 |
48,038 topics / 350,123 posts / today 1 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » How to input commands from a document |
| Printable Version 712 / 1 |
| Floor1 26933062 | Posted 2006-12-31 15:01 |
| 银牌会员 Posts 879 Credits 2,268 | |
|
The contents of a.txt are as follows
dir echo hello copy e:\123\*.txt e:\111 Can I call the contents of a.txt directly from a batch file? With the following method I can only get the contents of the first line. How do I get the lines after that? The key is that I want to learn how to use the < symbol. @echo off set /p a=<a.txt %a% pause [ Last edited by 26933062 on 2006-12-31 at 03:40 PM ] |
|
| Floor2 Primalchaos | Posted 2006-12-31 21:28 |
| 初级用户 Posts 19 Credits 41 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |