Batch files: exporting special words

  • Thread starter Thread starter Dustin Bruce
  • Start date Start date
D

Dustin Bruce

I am having trouble writing the word if to files,
echo if(%%this == %%that)>>File.txt
it won't export the word if, i can't find anything
anywhere on this subject, and believe me i've searched
for hours on end... So any help is more than appreciated,
Thanks.

-Dustin.
 
%%<letter>

So %%This is exactly the same as %%That as it is being read as %%T followerd by the letters his and %%T followed by hat.

If %%T = dog it will show as
doghis==doghat

%%T is used with the for loop and only in bat files (%<letter> at a command prompt)
Perhaps you should tell us what you are trying to do.
 
Im using html forms and javascript to call a batch file
that will write code for weapons and things to a file.
But i can't export the word 'if', even after the echo
command it acts like im trying to check a variable, when
really im trying to export it.
-----Original Message-----
%%<letter>

So %%This is exactly the same as %%That as it is being
read as %%T followerd by the letters his and %%T followed
by hat.
If %%T = dog it will show as
doghis==doghat

%%T is used with the for loop and only in bat files (%
Perhaps you should tell us what you are trying to do.

--
David Candy
http://www.mvps.org/serenitymacros/
http://www.simtel.com/pub/pd/18669.html
"Dustin Bruce" <[email protected]> wrote in
message news:[email protected]...
 
Back
Top