Computing.Net > Forums > Programming > Input to txt file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Input to txt file

Reply to Message Icon

Name: Iamregistered
Date: June 23, 2009 at 09:49:15 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

Hey.

I've got a problem which probably has got a easy
answer.
I just wonder why this is not working;

Echo IF %%variable%%==%%variable%% cls & goto
:label >>"File.bat"

It's supposed to write the command
IF %%variable%%==%%variable%% cls & goto :label
into File.bat.
But it isn't working.

Replies is appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: Iamregistered
Date: June 23, 2009 at 10:46:07 Pacific
Reply:

I figured it out, I just had to put a ^ in front of the &
example:
echo If %%Variable1%%==%%Variable2%% cls ^& goto :label
>>"File.bat"


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Input to txt file

Perl : converting .elf (binary) to .txt file www.computing.net/answers/programming/perl-converting-elf-binary-to-txt-file/20052.html

Perl : converting .elf (binary) to .txt file www.computing.net/answers/programming/perl-converting-elf-binary-to-txt-file/20055.html

Batch File|Input from txt file www.computing.net/answers/programming/batch-fileinput-from-txt-file-/17293.html