MS-DOS

Moderators: blip
Number of threads: 389
Number of posts: 904

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Getting values into a batch file Posted by GeneralMayheM on 9 Jul 2003 at 5:53 AM
I am processing text files using a batch file to create a master text file. During the process I would like to do a simply calculation.

My problem is that I do not know how to read a value into a batch file from an external file.

Any help would be GA!

-MayheM

Report
Re: Getting values into a batch file Posted by WaltP on 10 Jul 2003 at 8:37 AM
This message was edited by WaltP at 2003-7-10 8:38:45

: I am processing text files using a batch file to create a master text file. During the process I would like to do a simply calculation.
:
: My problem is that I do not know how to read a value into a batch file from an external file.
:
: Any help would be GA!
:
: -MayheM
:
You exit the program with an exit code. Then you have to test the errorlevel of the program in the batch file. Batch file don't have variables so this is usually problematic and kludgy at best but it can be done.



----------------
Walt







 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.