Shilohcity
Technical User
Is that an echo I hear? :-D
I am trying to output an echo command into a batch file so the batch file can output into another file like so:
xp_cmdshell 'echo echo file2Output >> file2.txt >> file1.bat'
As there are 2 echo commands things are getting a bit muddled and the output I get in file1.bat is:
file2Output
when what I am after is:
echo file2Output >> file2.txt
I am not sure how to get around this so any suggestions or advice would be most appreciated.
Cheers
Justin.
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
Visit me at
I am trying to output an echo command into a batch file so the batch file can output into another file like so:
xp_cmdshell 'echo echo file2Output >> file2.txt >> file1.bat'
As there are 2 echo commands things are getting a bit muddled and the output I get in file1.bat is:
file2Output
when what I am after is:
echo file2Output >> file2.txt
I am not sure how to get around this so any suggestions or advice would be most appreciated.
Cheers
Justin.
"Creativity is the ability to introduce order into the randomness of nature." Eric Hoffer
Visit me at