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!
Credits 257 Posts 38 Joined 2004-05-20 00:00 22-year member UID 24855 Gender Male
Status Offline
Is anyone hearing my question? I've always been confused about the difference between INT 20 and the 4C of INT 21. I just know that 4C is a bit better, but why does the teaching post use INT 20 after using 4C in DEBUG? Can anyone answer me?
Credits 2,165 Posts 730 Joined 2004-04-21 00:00 22-year member UID 22966 Gender Male
Status Offline
Two questions:
Choice should be an external command, right? Not all machines can use this command...
Another:
C.BAT
@ECHO OFF
ECHO ------ COMPILE %1 ------
FOR1 %1; >NUL ;What do these two commands mean?
FOR2 >NUL ;It doesn't seem to make sense to me!
@ECHO ON
Credits 306 Posts 81 Joined 2003-05-10 00:00 23-year member UID 1988 Gender Male
Status Offline
Originally posted by Tornado at 2003-5-4 00:00:
I know the first post. Excuse me, master, where is the content of the second post? Are there any books on this aspect?
I took the basic DOS course in college in 1994, almost all of it was covered. Unfortunately, my textbook was borrowed by a classmate and not returned. Fortunately, I learned it very thoroughly.
Also, I read the help that comes with DOS 6.22, which is very complete.
Choice is an external command. In 2000 and XP, SET is recommended; SET is an internal command. If your batch script needs to work under both 98 and XP, you should first detect the OS version using environment variables, then branch to choose between Choice or SET.
FOR1 and FOR2 should be the names of two programs.