home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / CDMX2DOR.ZIP / FASTFREQ.BAT < prev    next >
DOS Batch File  |  1993-08-13  |  4KB  |  91 lines

  1. @rem FASTFREQ.BAT (sample bat)
  2. @rem
  3. @rem Makes an "innie" (dirx.lst) in c:\backup from files on D:\001\car*.*
  4. @rem for instant user access to previously offline files
  5. @rem
  6. @rem Say a user requests some files that are not anywhere on your download
  7. @rem drives but are on your system somewhere.  He wants them right away and
  8. @rem you want to let him at them right away.  How to do it?  Use this
  9. @rem batfile.  You will need to edit some of it.  Specifically, you will
  10. @rem need to have a "Requested Files" area already set up on CDMX2DOR (see
  11. @rem my REQBOB.LST as an example).  Be sure that your CDSONLIN.LST is
  12. @rem edited to include its being able to access your REQBOB.LST (or whatever
  13. @rem you call it.  As you will notice, my REQBOB.LST points to c:\backup
  14. @rem subdirectory so the dirx.lst there must contain a list of the files
  15. @rem that the user is requesting and these files must be in c:\backup for
  16. @rem him to download.  The files he wants are on Drive\Sub D:\001 and the
  17. @rem files begin with CAR.  My home directory where I am starting this
  18. @rem bat file is C:\cdbob.
  19. @rem
  20. @rem make appropriate changes to c:\backup     (your Req'File subdirectory)
  21. @rem make appropriate changes to D:\001\CAR*.* (the file area/type user wants)
  22. @rem make appropriate changes to c:\cdbob      (your startup subdirectory)
  23. @rem
  24. @rem You will need to adjust your dlc# as necessary to make it look
  25. @rem right (if there is an associated files.bbs on the D:\001 drive).
  26. @rem Different files.bbs's exist; some have dates/size, some not.  If they
  27. @rem do have date/size already in them then a dlc# around -14 ought to get
  28. @rem it right in the dirx.lst; if they don't have date/size, then a 0 will
  29. @rem get it about right.  If you have download counters in those files.bbs's
  30. @rem and no date/size info, then you'll need to have the width of your
  31. @rem dl counters from bracket-to-bracket, e.g., dlc#=6 for a [0000] dlc.
  32. @rem Experiment and see what happens.
  33. @rem
  34. @rem Your D:\001\CAR*.* could be a *.zip or a h*.arj or whatever.
  35. @rem
  36. @rem
  37. @rem Bat Start:
  38. @rem -----------------------------------------------------------------------
  39. @rem
  40. @rem see if there are old files in c:\backup and if so delete them
  41. @cd \backup
  42. @rem
  43. @rem CAUTION!!!  This next line deletes ALL files in c:\backup!  Have nothing
  44. @rem in C:\backup that you want to keep.  Only copies of files should end up
  45. @rem in C:\backup!!!
  46. @rem
  47. @for %%f in (*.*) do del %%f
  48. @rem
  49. @rem switch back to our home directory
  50. @cd \cdbob
  51. @rem
  52. @rem
  53. @rem copy car*.* files from drive D:\001 to drive C:\backup
  54. @instfreq /c:\qb45\fr*.* /c:\backup\
  55. @rem
  56. @rem switch to drive D:, C: or whatever
  57. @C:
  58. @rem
  59. @rem switch to subdirectory 001
  60. @cd \qb45
  61. @rem
  62. @rem if there's a files.bbs there then copy it to c:\backup
  63. @if exist files.bbs copy files.bbs c:\backup
  64. @rem
  65. @rem switch to drive C:
  66. @C:
  67. @rem
  68. @rem wait for a key press
  69. @pause
  70. @rem
  71. @rem start up flydirx on c:\backup as an outtie with a dlc of -14
  72. @flydirx c:\backup OUT -14
  73. @rem
  74. @rem kill the files.bbs on C:\backup if there is one
  75. @if exist c:\files.bbs del c:\backup\files.bbs
  76. @rem
  77. @rem copy the backup.lst that is in the present subdirectory back to c:\backup
  78. copy backup.lst c:\backup
  79. @rem
  80. @rem delete the backup.lst (which is an outtie) from the present subdirectory
  81. del backup.lst
  82. @rem
  83. @rem switch to c:\backup
  84. cd \backup
  85. @rem
  86. rem rename backup.lst (which is an outtie) to dirx.lst (which is an innie)
  87. ren backup.lst dirx.lst
  88. @rem
  89. rem switch back to the present subdirectory and end
  90. @cd \cdbob
  91.