echo dos script

July 17, 2011 at 20:03:15
Specs: Windows XP
I need to echo the following to a file, how do i do that?

echo user webmdev B11&^W3bM3th0ds&724 >>putfile.ftp

so that in the file it will show as:
user webmdev B11&^W3bM3th0ds&724


See More: echo dos script

Report •


#1
July 22, 2011 at 15:38:51
Hi Jeffery8

@echo off
set Text=B11@w3bM3thOds@724
echo %Text%>~Temp.txt

for /f "tokens=1-3 delims=@" %%a in (~Temp.txt) do (
echo user webmdev %%a^&^^%%b^&%%c >User.txt
)
del ~Temp.txt


Report •

#2
July 23, 2011 at 12:00:14
Hi
After trying to get the above to work I used a sledge hammer to crack a nut.
It was late and I had a few beers.
When this would have done.

echo user webmdev B11^&^^w3bM3thOds^&724>User.txt


Report •

#3
July 24, 2011 at 00:56:54
thanks fr your help. I must say your simplified solution fails to work for me.

Report •

Related Solutions

#4
July 24, 2011 at 00:59:56
@dtech10, cmd thinks you want to send stream 4(unused) to file.

echo user webmdev B11^&^^w3bM3thOds^&724>User.txt

>User.txt echo user webmdev B11^&^^w3bM3thOds^&724

http://www.computing.net/howtos/sho...


Report •

Ask Question