home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
FLYDIR.ZIP
/
FLYDIR.PPS
< prev
next >
Wrap
Text File
|
1995-01-09
|
1KB
|
44 lines
String LSTFile,DIRFile,DIRSub,CNames,Found,Desc,Line
Integer i,Temp,Sort,iFiles,Count,Dir
Int C_Size
Dir = GetToken()
If (Dir = "") then
PrintLn "Please inform your System Operator there is a configuration error."
PrintLn "File Directories are not available at this time."
End
Endif
CNames = ReadLine(PCBDat(),31)+".@@@"
FOpen 1,CNames,O_RD,S_DN
FRead 1,C_Size,2
FSeek 1,((C_Size*CurConf())+484),Seek_Set
FRead 1,LSTFile,33
FClose 1
FOpen 1,LSTFile,O_RD,S_DN
FSeek 1,((Dir-1)*96),Seek_Set
FRead 1,DIRFile,30
FRead 1,DIRSub,30
FRead 1,Desc,35
FRead 1,Sort,1
DIRSub = Strip(DIRSub," ")
PrintLn " File Category: ",Desc
PrintLn ""
Found = FindFirst(DIRSub+"*.*")
Count = 1
Line = "@X0E"+Left(Found,12)+"@X0A"+Right(String(FileInf(DIRSub+Found,4)),9)+Space(2)+"@X0B"+String(FileInf(DIRSub+Found,2))
iFiles = FileInf(DIRSub+Found,4)
PrintLn Line
While (Found <> "") do
Found = FindNext()
Line = "@X0E"+Left(Found,12)+"@X0A"+Right(String(FileInf(DIRSub+Found,4)),9)+Space(2)+"@X0B"+String(FileInf(DIRSub+Found,2))
If (Found <> "") PrintLn Line
Inc Count
iFiles = iFiles + FileInf(DIRSub+Found,4)
Endwhile
PrintLn ""
PrintLn " Total files: ",String(Count)," Total files size: ",String(iFiles)
End