The information in this article applies to:
SUMMARYA Visual Basic for MS-DOS, version 1.0 program will return the COMMAND$ as expected, but the RUN statement with an appended command string will not pass the COMMAND$ to the new program. Instead, the original COMMAND$ from the first program is passed to the second (RUN) program. The two programs listed below demonstrate this behavior. MORE INFORMATIONIf you type "PROG1 /Z" on the MS-DOS command line, "/Z" is returned with the COMMAND$ function in both programs listed below, regardless of what is entered for X$ in Prog1. Because the RUN statement is used with a quoted string, the " + X$" is concatenated to the program name string. This means that if X$ equals "/B", then the RUN statement is actually RUN "PROG2.EXE/B", which is not a valid filename.
Additional query words: VBmsdos QuickBas BasicCom 1.00 4.00 4.00b 4.50 6.00 6.00b 7.00
Keywords : |
Last Reviewed: December 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |