China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 22:21
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How do I find out a program's return code? View 701 Replies 3
Original Poster Posted 2003-07-25 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
How do I find out a program's return code?
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 2 Posted 2003-07-26 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
Where's the moderator? Not going to bump this a bit....
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 3 Posted 2003-07-26 00:00 ·  中国 广东 广州 增城区 电信
元老会员
★★★
Credits 1,468
Posts 407
Joined 2002-10-21 00:00
23-year member
UID 34
Gender Male
From 广州
Status Offline
First run “COMMAND.COM /Z”, then run the program. After the program finishes executing, its return code will be displayed.
欢迎大家观临我的个人主页:

http://dosdiy.bluepc.com.cn/
http://dosdiy.ys168.com/


EMAIL: lydong@china.com.cn lydong@yeah.net
----------------------------------------------
Floor 4 Posted 2003-07-27 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
Is that the return code for successful execution?
But if I want to know the others, do I use the same method? (For example, quitting the program) Do you have a code table for any commonly used software?
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Forum Jump: