GET or PRINT statements that end with one of the following often cause this problem:
- ";" semi-colon
- "," comma
- tab
- space
A PRINT statement on the line above a DOS command generates the necessary carriage return; alternatively, define D$ as a carriage return and a CTRL-D:
10 D$ = chr$ (13) + chr$ (4)
DOS commands are also ignored when improperly used. IN# and PR# DOS commands, for example, must be sent out as:
10 print chr$(4);"IN#0"
20 print chr$(4);"PR#0"
For further explanation, refer to pages 100 through 103 of The DOS Manual or page 25 of The DOS Programmer's Manual.