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 ]
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 ]
