Computing.Net > Forums > Programming > How to return value from batch 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.

How to return value from batch file

Reply to Message Icon

Name: yuenli
Date: September 25, 2008 at 02:03:24 Pacific
OS: XP
CPU/Ram: Intel P4, 1Gb
Product: Dell
Comment:

Hi! May I know how to return value from batch file? Is it anyway to return a value? Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: September 25, 2008 at 02:07:05 Pacific
Reply:

EXIT /B <number>


0

Response Number 2
Name: lee123abc
Date: September 30, 2008 at 05:57:40 Pacific
Reply:

set choice1=
set /p choice1=type your first name here...
set choice2=
set /p choice2=type your surname here...
echo Hello %choice1% %choice2%, please give more information or let me know if this is sufficient.


etc..


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Output Select Lines from ... WSH VBScript String Manip...



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: How to return value from batch file

How to write in a batch file using c#? www.computing.net/answers/programming/how-to-write-in-a-batch-file-using-c/19065.html

How to do: Net Send Batch File www.computing.net/answers/programming/how-to-do-net-send-batch-file/18083.html

batch files www.computing.net/answers/programming/batch-files/2303.html