ibi

fbbs.btm

ibi
Mar 29th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. @echo off
  2. setlocal
  3. cls
  4. echo.
  5. echo *** FILES.BBS Filelistcreator by BiNGEN
  6. echo (be sure that DESCCONV.COM is loaded!)
  7. echo.
  8. %1
  9. set tsize=0
  10. set tcount=0
  11. set output=c:\filesbbs.lst
  12. set currdir=c:\dir$$$.tmp
  13. del %output
  14. echo ��������������������������������������������������������������������������������>>%output
  15. echo ��� Drivelabel: %@label[%_disk:]>>%output
  16. echo ��� Filelist created at %_dow, %_date on %_time>>%output
  17. echo ��������������������������������������������������������������������������������>>%output
  18. global /i gosub process
  19. echo.>>%output
  20. echo ��������������������������������������������������������������������������������>>%output
  21. echo ��� %tcount Total Files in %@comma[%tsize] Total Bytes.>>%output
  22. echo ��������������������������������������������������������������������������������>>%output
  23. echo.>>%output)
  24. endlocal
  25. goto exit
  26. :process
  27. if exist files.bbs goto part2
  28. echo.
  29. echo Keine FILES.BBS in diesem Verzeichnis.
  30. echo.
  31. goto ende
  32. :part2
  33. echo ��������������������������������������������������������������������������������>>%currdir
  34. echo ��� Path: %_cwds>>%currdir
  35. if "%@descript[%_cwd*]"=="" goto weiter
  36. echo.>>%currdir
  37. dir %_cwd* /k/m>>%currdir
  38. :weiter
  39. echo ��������������������������������������������������������������������������������>>%currdir
  40. set fsize=0
  41. set fcount=0
  42.  
  43. for %a in (*.*) do (
  44. iff "%a"=="files.bbs" .OR. "%a"=="FILES.BBS" .OR. "%a"=="descript.ion" .OR. "%a"=="DESCRIPT.ION" then
  45. rem * do nothing
  46. else
  47. set fsize=%@eval[%fsize+%@filesize[%a,b]]
  48. set fcount=%@eval[%fcount+1]
  49. echo File Nr.: %fcount (%@full[%a])
  50. dir %a /k/m >>%currdir
  51. rem echo %@format[.12,%a ] %@filedate[%a] %@format[5,%@filesize[%a,k]]kb %@descript[%a]>>%currdir
  52. endiff)
  53.  
  54. echo.>>%currdir
  55. echo ��� %fcount Files in %@comma[%fsize] Bytes.>>%currdir
  56. echo.>>%currdir)
  57. set tsize=%@eval[%tsize+%fsize]
  58. set tcount=%@eval[%tcount+%fcount]
  59. copy %output+%currdir %output
  60. del %currdir /q
  61. :ende
  62. :return
  63. :exit
  64.  
Tags: bbs 4DOS NDOS
Advertisement
Add Comment
Please, Sign In to add comment