A
Antti H
Hi,
i am creating a nifty little batch script that will create a tar archive
from arguments read in file.txt, which is:
#file.txt
foo
faa
foo2
The readlines.bat is:
for %%q in (file.txt) do (
set FOO=%FOO% %%q
)
then I want to echo %FOO% and I expect it includes strings foo faa foo2
nicely on one row.
However, this is not the case. The output is as follows:
foo2 foo2 foo2
what the heck is up with that?
Please reply to my e-mail address also.
Thanks in advance!
PS: I need recommendations on a good book on windows batch scripting,
something that covers 2003 server also?
i am creating a nifty little batch script that will create a tar archive
from arguments read in file.txt, which is:
#file.txt
foo
faa
foo2
The readlines.bat is:
for %%q in (file.txt) do (
set FOO=%FOO% %%q
)
then I want to echo %FOO% and I expect it includes strings foo faa foo2
nicely on one row.
However, this is not the case. The output is as follows:
foo2 foo2 foo2
what the heck is up with that?
Please reply to my e-mail address also.
Thanks in advance!
PS: I need recommendations on a good book on windows batch scripting,
something that covers 2003 server also?