A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Batch files: exporting special words



 
 
Thread Tools Display Modes
  #1  
Old January 7th 04, 11:29 AM
Dustin Bruce
external usenet poster
 
Posts: n/a
Default 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  
Old January 7th 04, 11:29 AM
David Candy
external usenet poster
 
Posts: n/a
Default 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  
Old January 7th 04, 11:29 AM
Dustin Bruce
external usenet poster
 
Posts: n/a
Default 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  
Old January 7th 04, 11:29 AM
David Candy
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 07:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.