home *** CD-ROM | disk | FTP | other *** search
- {$V-}
- Program Trun;
- (*
- This program is designed to test TURBORUN.COM version 1.0B
- *)
- Type String255=String[255];
-
- Var cmdline:String255;
- RetCode:Integer;
- i,x:Integer;
- com:file of byte;
- byt:byte;
-
- Procedure GoForIt(Var RC:Integer; Var CommandLine);
- External 'turborun.com'; {Assume Turborun is on default drive}
-
-
- Procedure Wait;
- Var ch:char;
- Begin
- Writeln;
- Writeln('Strike any key . . .');
- Read(kbd,ch);
- End;
-
- Begin
- Wait;
- Repeat
- ClrScr;
- Writeln('Enter command: (type END to halt)');
- Writeln('Examples: command.com /c dir';
- Writeln(' c:command.com /c dir|sort|more>prn';
- Writeln(' or any executable filename';
- Write('>');
- Readln(cmdline);
- If cmdline<>'END' Then
- Begin
- cmdline:=cmdline+#0;
- GoForIT(RetCode,cmdline[1]);
- WriteLn;
- WriteLn('Return code is ',RetCode);
- Wait;
- End;
- Until cmdline='END';
- end.
-
-
-