Computing.Net > Forums > Disk Operating System > batch file question

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.

batch file question

Reply to Message Icon

Name: hev
Date: February 9, 2001 at 21:00:58 Pacific
Comment:

Hi guys, i have a pb here:
I have two .txt files on a floppy (i am not supposed to know their name)
I want to create a batch file that will set the variable:
text1 to either .txt file
text2 to the other one

anybody knows how to do that?

thx!



Sponsored Link
Ads by Google

Response Number 1
Name: trev
Date: February 10, 2001 at 12:11:51 Pacific
Reply:

yes


0

Response Number 2
Name: hev
Date: February 10, 2001 at 13:44:25 Pacific
Reply:

could you tell me how to? =)


0

Response Number 3
Name: Michael Robertson
Date: February 11, 2001 at 13:03:11 Pacific
Reply:


I'd like to know too.


0

Response Number 4
Name: DrScriptt (Grant)
Date: February 14, 2001 at 20:42:52 Pacific
Reply:

SET Text1=%1
SET Text2=%2

assuming that %1 is the first file and %2 is the secound file. %1 and %2 are replacable paramaters. All you do is type batch file name and then the params i.e. test.bat par1 par2


0

Sponsored Link
Ads by Google
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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch file question

batch file question www.computing.net/answers/dos/batch-file-question/3271.html

Batch File question? www.computing.net/answers/dos/batch-file-question/5299.html

Another batch file question www.computing.net/answers/dos/another-batch-file-question/9863.html