home *** CD-ROM | disk | FTP | other *** search
- program setparm;
- uses crt, ioerrmsg;
- var
- parmfile: text;
- timezone: 0..23;
- comport: 1..2;
- dialcmd: string[80];
- resetcmd: string[80];
-
- procedure check_io;
- var i: integer;
- begin
- i := IOresult;
- if i<> 0 then begin
- writeln('I/O error #',i, ' on PARMFILE: ', errmsg(i));
- halt;
- end;
- end;
-
- begin
- ClrScr;
- {$I-}
- assign(parmfile,'parmfile');
- check_io;
- rewrite(parmfile);
- check_io;
- {$I+}
- writeln ('Enter time zone from Greenwich Mean Time: ');
- writeln (' 4 - Eastern Daylight');
- writeln (' 5 - Eastern Standard or Central Daylight');
- writeln (' 6 - Central Standard or Mountain Daylight');
- writeln (' 7 - Mountain Standard or Pacific Daylight');
- writeln (' 8 - Pacific Standard');
- write (':');
- readln (timezone);
- write('Enter communication port, 1 or 2: ');
- readln(comport);
- write('Enter modem reset command (default: "ATZ"): ');
- readln(resetcmd);
- if resetcmd = '' then resetcmd := 'ATZ';
- writeln ('Enter dial command for Naval Observatory');
- write (' (default: "ATDT2026530351"): ');
- readln (dialcmd);
- if dialcmd = '' then dialcmd := 'ATDT2026530351';
- {$I-}
- writeln(parmfile, timezone);
- check_io;
- writeln(parmfile, comport);
- check_io;
- writeln(parmfile, resetcmd);
- check_io;
- writeln(parmfile, dialcmd);
- check_io;
- close(parmfile);
- check_io;
- end.