home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
153.img
/
TELES.ZIP
/
BEND.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-07-02
|
698b
|
33 lines
Uses
DOs,
Crt;
Var I:Integer;
Fn:Text;
Comport:String[1];
Begin
If ParamCount=0 Then Begin
Textcolor(15);
ClrScr;
Writeln(' >> SEND - By Carl Mueller <<');
Writeln;
Textcolor(11);
Writeln('Syntax is');
Writeln(' SEND [STRING] [COMPORT]');
WRITELN;
TEXTCOLOR(10);
Writeln('COMPORT defaults to 1 if NOT specified.');
Writeln('Example: SEND ATA 1');
end else begin
textcolor(4);
if paramcount=1 then comport:='1' else Comport:=Paramstr(2);
assign(fn,'COM'+comport);
rewrite(fn);
writeln(fn,paramstr(1));
close(fn);
writeln(paramstr(1));
end;
END.