ibi

cdlist.btm

ibi
Mar 29th, 2025
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. @echo off
  2. cls
  3. setlocal
  4. setdos /d"files.bbs"
  5. echo.
  6. echo ***
  7. echo *** FILES.BBS/FILE_ID.DIZ Filelistcreator by BiNGEN
  8. echo ***
  9. echo *** (brauchbar fuer filelisten von cd-roms, die nicht
  10. echo *** in die bbs eingebunden sind aber eine files.bbs haben)
  11. echo ***
  12. echo *** Benoetigte Utilites: GUS - General Unpack Shell
  13. echo *** DIZZY - FILE_ID.DIZ Reformator
  14. echo ***
  15. echo.
  16. set tsize=0
  17. set tcount=0
  18. set workdir=c:\temp\
  19. set listname=%@label[%_disk:]
  20. set output=%workdir%%listname%.lst
  21. set currdir=%workdir%dir$$$.tmp
  22. del %output
  23. echo ��������������������������������������������������������������������������������>>%output
  24. echo ��� Drivelabel: %@label[%_disk:]>>%output
  25. echo ��� Filelist created at %_dow, %_date on %_time>>%output
  26. echo ��������������������������������������������������������������������������������>>%output
  27. global gosub process
  28. echo.>>%output
  29. echo ��������������������������������������������������������������������������������>>%output
  30. echo ��� %tcount Total Files in %@comma[%tsize] Total Bytes.>>%output
  31. echo ��������������������������������������������������������������������������������>>%output
  32. echo.>>%output)
  33. setdos /d"descript.ion"
  34. endlocal
  35. cancel
  36.  
  37. :process
  38. if exist files.bbs goto part2
  39. echo.
  40. echo Keine FILES.BBS in diesem Verzeichnis.
  41. echo.
  42. goto ende
  43. :part2
  44. echo ��������������������������������������������������������������������������������>>%currdir
  45. echo ��� Path: %_cwds>>%currdir
  46. if "%@descript[%_cwd*]"=="" goto weiter
  47. echo.>>%currdir
  48. dir %_cwd* /k/m>>%currdir
  49. :weiter
  50. echo ��������������������������������������������������������������������������������>>%currdir
  51. set fsize=0
  52. set fcount=0
  53.  
  54. for %a in (*.*) gosub mainloop
  55. echo.>>%currdir
  56. echo ��� %fcount Files in %@comma[%fsize] Bytes.>>%currdir
  57. echo.>>%currdir)
  58. set tsize=%@eval[%tsize+%fsize]
  59. set tcount=%@eval[%tcount+%fcount]
  60. copy %output+%currdir %output
  61. del %currdir /q
  62. :ende
  63. return
  64.  
  65. :mainloop
  66. iff "%a"=="files.bbs" .OR. "%a"=="FILES.BBS" .OR. "%a"=="descript.ion" .OR. "%a"=="DESCRIPT.ION" .OR. "%a"=="00_index.txt" then
  67. echo File wird nicht in die Fileliste aufgenommen!
  68. else
  69. set fsize=%@eval[%fsize+%@filesize[%a,b]]
  70. set fcount=%@eval[%fcount+1]
  71. gosub extractor
  72. echo.>>%currdir%
  73. endiff
  74. return
  75.  
  76. :extractor
  77. echo File Nr.: %fcount (%@full[%a])
  78. echo *** %@format[.12,%@upper[%a] ] - %@format[.8,[%@filesize[%a,k]kb] ] - [%@filedate[%a]/%@filetime[%a]] >> %currdir%
  79. gus %a file_id.diz %workdir% /n>nul
  80. if exist %workdir%file_id.diz goto teil2
  81. echo "%@descript[%a]">%workdir%file_id.diz
  82. dizzy %workdir%file_id.diz
  83. :teil2
  84. type %workdir%file_id.diz
  85. type %workdir%file_id.diz>>%currdir%
  86. del %workdir%file_id.diz /q
  87. return
  88.  
  89.  
Tags: bbs 4DOS NDOS
Advertisement
Add Comment
Please, Sign In to add comment