There is a file a.bat, with the following contents:
Enter a.bat "bb" in cmd
and it will append to the end of file 1.txt:
aa
(dirctories)
But what I want appended to the end of file 1.txt is:
aa(dirctories)
What should I do?
Note: that is, there is no carriage return after aa, it directly appends (dirctories)
[ Last edited by sinbao on 2007-8-29 at 01:43 PM ]
echo "aa" >>1.txt
echo dir /b >>1.txt
Enter a.bat "bb" in cmd
and it will append to the end of file 1.txt:
aa
(dirctories)
But what I want appended to the end of file 1.txt is:
aa(dirctories)
What should I do?
Note: that is, there is no carriage return after aa, it directly appends (dirctories)
[ Last edited by sinbao on 2007-8-29 at 01:43 PM ]
