If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Batch files: exporting special words
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. |
Ads |
#2
|
|||
|
|||
Batch files: exporting special words
%%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 =3D dog it will show as doghis=3D=3Ddoghat %%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. --=20 David Candy http://www.mvps.org/serenitymacros/ http://www.simtel.com/pub/pd/18669.html "Dustin Bruce" wrote in message = ... I am having trouble writing the word if to files, echo if(%%this =3D=3D %%that)File.txt it won't export the word if, i can't find anything=20 anywhere on this subject, and believe me i've searched=20 for hours on end... So any help is more than appreciated,=20 Thanks. =20 -Dustin. |
#3
|
|||
|
|||
Batch files: exporting special words
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 (% letter at a command prompt) 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" wrote in message ... 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. . |
#4
|
|||
|
|||
Batch files: exporting special words
It's the rest of the line not IF.
--=20 David Candy http://www.mvps.org/serenitymacros/ http://www.simtel.com/pub/pd/18669.html "Dustin Bruce" wrote in message = ... Im using html forms and javascript to call a batch file=20 that will write code for weapons and things to a file.=20 But i can't export the word 'if', even after the echo=20 command it acts like im trying to check a variable, when=20 really im trying to export it. =20 -----Original Message----- %%letter So %%This is exactly the same as %%That as it is being=20 read as %%T followerd by the letters his and %%T followed=20 by hat. If %%T =3D dog it will show as doghis=3D=3Ddoghat %%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. --=20 David Candy http://www.mvps.org/serenitymacros/ http://www.simtel.com/pub/pd/18669.html "Dustin Bruce" wrote in=20 message ... I am having trouble writing the word if to files, echo if(%%this =3D=3D %%that)File.txt it won't export the word if, i can't find anything=20 anywhere on this subject, and believe me i've searched=20 for hours on end... So any help is more than=20 appreciated,=20 Thanks. =20 -Dustin. . |
Thread Tools | |
Display Modes | |
|
|