AT2k Design BBS Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages! You are not logged in. Login here for full access privileges. |
Previous Message | Next Message | Back to Computer Support/Help/Discussion... <-- <--- | Return to Home Page |
|
||||||
From | To | Subject | Date/Time | |||
Nick Andre | Tiny | Re: Directory Contents in pascal |
October 30, 2024 9:25 AM * |
|||
On 30 Oct 24 07:07:35, Tiny said the following to All: T> Does anyone have an example of pascal source code to just display the T> contents of a directory? I can do it with a shell to dir /b d:\blah but T> looking for a way that I could make pretty. Yes. program dirthis; uses dos; var dirinfo : SearchRec; this : string; procedure DirThisFile; begin writeln(dirinfo.name); end; begin writeln('Dir "This" Win32 Copyright (c) by Nick J. Andre, Ltd.'; writeln; this:=paramstr(1); if (pos('\',this)=0) or (this[length(this)]<>'\' then this:=this+'\'; if (pos('.',this)=0) and (pos('*',this)=0) then this:=this+'*.*'; findfirst(this,archive,dirinfo); if DOSerror=0 then DirThisFile; while (DOSerror=0) do begin findnext(dirinfo);DirThisFile; end; findclose(dirinfo); end. Nick --- Renegade vY2Ka2 * Origin: Joey, do you like movies about gladiators? (618:500/24) |
||||||
|
Previous Message | Next Message | Back to Computer Support/Help/Discussion... <-- <--- | Return to Home Page |
Execution Time: 0.0158 seconds If you experience any problems with this website or need help, contact the webmaster. VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved. Virtual Advanced Copyright © 1995-1997 Roland De Graaf. |