Peegee
06-08-2009, 03:36 PM
I've narrowed it down to this question:
"In a dos prompt batch input file, how do you input a string that has a space?"
Eg (simplied to illustrate the point):
Say you have a file input.txt
input.txt has the following lines
"telephone"
"caterpillar"
"boeing airplane"
If you were to run the following batch:
for /f %%i in (input.txt) do (
@echo %%i
)
You will get the following :
"telephone"
"caterpillar"
"boeing
Where's the " airplane"?? It doesn't get picked up by echo!
However if you typed in dos prompt echo "boeing airplane" it would output:
boeing airplane
aieee~
"In a dos prompt batch input file, how do you input a string that has a space?"
Eg (simplied to illustrate the point):
Say you have a file input.txt
input.txt has the following lines
"telephone"
"caterpillar"
"boeing airplane"
If you were to run the following batch:
for /f %%i in (input.txt) do (
@echo %%i
)
You will get the following :
"telephone"
"caterpillar"
"boeing
Where's the " airplane"?? It doesn't get picked up by echo!
However if you typed in dos prompt echo "boeing airplane" it would output:
boeing airplane
aieee~