why it doesn't work?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Mohammad_Dos
Posts: 84
Joined: 08 Sep 2010 10:25
Location: Iran,Kashan
Contact:

why it doesn't work?

#1 Post by Mohammad_Dos » 21 Jul 2011 13:37

it doesn't work correctly

echo echo Msgbox"update restore is finished",12,"it's OK">%systemroot%\message22.vbs>>"C:\jay gozini update.bat"
echo start %systemroot%\message22.vbs>>"C:\jay gozini update.bat"
echo exit%systemroot%\message22.vbs>>"C:\jay gozini update.bat


output:
echo Msgbox"update restore is finished",12,"it's OK"
start %systemroot%\message22.vbs>>"C:\jay gozini update.bat"
exit%systemroot%\message22.vbs>>"C:\jay gozini update.bat

but the fisrt line of putput must be:
echo Msgbox"update restore is finished",12,"it's OK">%systemroot%\message22.vbs


why?
is there a way to solve this problem?

Acy Forsythe
Posts: 126
Joined: 10 Jun 2011 10:30

Re: why it doesn't work?

#2 Post by Acy Forsythe » 21 Jul 2011 14:29

Escape that > sign like so ^>

Mohammad_Dos
Posts: 84
Joined: 08 Sep 2010 10:25
Location: Iran,Kashan
Contact:

Re: why it doesn't work?

#3 Post by Mohammad_Dos » 21 Jul 2011 23:22

thanks a lot

Post Reply