Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
abc0502
- Posts: 1007
- Joined: 26 Oct 2011 22:38
- Location: Egypt
#1
Post
by abc0502 » 04 Apr 2012 18:41
I'm trying to Echo this command to another file but i can't echo %%a why ?
this is what i do:
Code: Select all
>"%batch_path%" (
echo for /f "tokens=2 delims=>" %%a in ^('find /i "%search_text%" "%html_file%"'^) Do ^(
echo IF %%a == "%search_text%</div" ^( msg * New Update is Available
echo ^) Else ^( msg * There is No Update Available ^)
echo ^) )>>"%batch_path%"
Last edited by
abc0502 on 04 Apr 2012 18:54, edited 2 times in total.
-
abc0502
- Posts: 1007
- Joined: 26 Oct 2011 22:38
- Location: Egypt
#2
Post
by abc0502 » 04 Apr 2012 18:46
OK I solved it Sorry for any troubles
all what i have to do is to add ^%% to %%a so it will be ^%%%%a
