home *** CD-ROM | disk | FTP | other *** search
- Program xCRTdemo;
-
-
- uses Crt,xCrt,envunit;
-
- type
- textfile = record
- f : text;
- name : XFName;
- end;
-
-
- var infile,outfile : textfile;
-
- const
- InName = 'autoexec.bat';
- OutName = 'turbo.exe';
-
- begin
-
- XFSearchPath := TRUE;
-
- ClrScr;
-
- AllowWildcards := false;
-
- if GetXFName('Input file name ',InName,forInput,infile.name) then begin
- with infile.name do writeln('Success! ',d,n,x); writeln;
-
- if GetXFName('Output file name ',OutName,forOutput,outfile.name) then begin
- with outfile.name do writeln('Success! ',d,n,x); writeln;
-
- end
- else
- writeln('Fails...');
-
- end
- else
- writeln('Fails...');
-
- end.