home *** CD-ROM | disk | FTP | other *** search
- {$N-} {kein numerischer Coprozessor}
- {$M 10000,1384,5360}
-
- program setdir;
-
- uses
- testfile,dos;
-
- var
- f : text;
- str,s : string[255];
- i : integer;
-
- begin
- {$I-}
- i:=1;
- repeat
- if paramcount>0 then assign(f,paramstr(i))
- else begin
- s:=getenv('temp');
- if s='' then assign(f,'c:\temp\dir.txt')
- else assign(f,s+'\dir.txt')
- end;
- RESET(F);
- IF IORESULT=0 THEN while not eof(f) do begin
- readln(f,str);
- chdir(str);
- if ioresult<>0 then writeln('Directory ',str,' existiert nicht!');
- end;
- inc(i);
- until i>paramcount;
- {$I+}
- end.
-