home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
30TURUTL
/
TRUN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-02-18
|
1KB
|
49 lines
{$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.