INF:Program's First Command-Line Argument Is "C" Under DOS 2.x

ID Number: Q27778

5.00 5.10 6.00 6.00a 6.00ax 7.00

MS-DOS

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, 6.0ax, and C/C++ version

7.0, real-mode programs that access command-line arguments in order to

determine their full pathname will find that their path is always "C"

under MS-DOS versions 2.x. Under MS-DOS versions 3.x and later, the

full path is retrieved as expected.

This is not a problem in the C compiler. Rather, it is a limitation of

MS-DOS versions 2.x.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 2.0 2.00 2 7.00