home *** CD-ROM | disk | FTP | other *** search
- {$M $C00,0,0} {MaxHeap must be limited to allow space for EXEC}
-
- Program DOSDemo;
- USES CRT, DOSShell;
- var
- Ch : char;
- HoldAttr : byte;
- begin
- HoldAttr := TextAttr;
- TextAttr := 15;
- ClrScr;
- Write('In the main application program - press a key to load the DOS shell. ');
- Repeat
- Ch := ReadKey;
- Until not KeyPressed;
- ShellToDOS;
- Write('Home again, home again - press a key to exit. ');
- Repeat
- Ch := ReadKey;
- Until not KeyPressed;
- TextAttr := HoldAttr;
- ClrScr;
- end.