home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / cdmx2204.zip / FASTFREQ.BAT < prev    next >
DOS Batch File  |  1993-12-22  |  6KB  |  139 lines

  1. @rem FASTFREQ.BAT (sample bat)
  2. @rem
  3. @rem  Do not run this bat until you have read the instructions herein as
  4. @rem  this bat requires commandline entries.  There are 6 entries on the
  5. @rem  command line.
  6. @rem
  7. @rem  Example entry at the dos prompt:
  8. @rem
  9. @rem  C:\>fastfreq C: \cdbob C: \max\file\ncbhere bi*.* -1
  10. @rem
  11. @rem  NOTE: You will need a subdirectory "\backup" on the present drive.
  12. @rem
  13. @echo You are starting on Drive %1
  14. @echo You are starting in Subdirectory %2
  15. @echo You are looking for files on Drive %3
  16. @echo You are looking for files on Subdirectory %4 of Drive %3
  17. @echo You are looking for %5 named-files
  18. @echo You are moving your DLC %6
  19. @rem
  20. @rem Makes an "innie" (dirx.lst) in, for example, c:\backup from files
  21. @rem on D:\001\car*.*, for instant user access to previously offline files
  22. @rem
  23. @rem This BAT starts up with a command line entry of the wildcard files you
  24. @rem want to put online, e.g., a command line would look thusly:
  25. @rem FASTFREQ bi*.*
  26. @rem
  27. @rem Say a user requests some files that are not anywhere on your download
  28. @rem drives but are on your system somewhere.  He wants them right away and
  29. @rem you want to let him at them right away.  How to do it?  Use this
  30. @rem batfile.  You will need to edit some of it.  Specifically, you will
  31. @rem need to have a "Requested Files" area already set up on CDMX2DOR (see
  32. @rem my REQBOB.LST as an example).  Be sure that your CDSONLIN.LST is
  33. @rem edited to include its being able to access your REQBOB.LST (or whatever
  34. @rem you call it.  As you will notice, my REQBOB.LST points to c:\backup
  35. @rem subdirectory so the dirx.lst there must contain a list of the files
  36. @rem that the user is requesting and these files must be in c:\backup for
  37. @rem him to download.  The files he wants are on Drive\Sub D:\001 and the
  38. @rem files begin with CAR.  My home directory where I am starting this
  39. @rem bat file is C:\cdbob.
  40. @rem
  41. @rem make appropriate changes to c:\backup     (your Req'File subdirectory)
  42. @rem make appropriate changes to D:\001\       (the file area user wants)
  43. @rem make appropriate changes to c:\cdbob      (your startup subdirectory)
  44. @rem
  45. @rem REMEMBER to startup with a command line entry of the wildcard file
  46. @rem selections you want to have moved to your c:\backup subdirectory!!
  47. @rem
  48. @rem You will need to adjust your dlc# as necessary to make it look
  49. @rem right (if there is an associated files.bbs on the D:\001 drive).
  50. @rem Different files.bbs's exist; some have dates/size, some not.  If they
  51. @rem do have date/size already in them then a dlc# around -14 ought to get
  52. @rem it right in the dirx.lst; if they don't have date/size, then a 1 will
  53. @rem get it about right.  If you have download counters in those files.bbs's
  54. @rem and no date/size info, then you'll need to have the width of your
  55. @rem dl counters from bracket-to-bracket, e.g., dlc#=6 for a [0000] dlc.
  56. @rem Experiment and see what happens.  You will have to figure this out on
  57. @rem your own.
  58. @rem
  59. @rem Your D:\001\ wildcard selection could be a *.zip or a h*.arj or whatever.
  60. @rem
  61. @rem
  62. @rem Bat Start:
  63. @rem -----------------------------------------------------------------------
  64. @rem
  65. @rem see if there are old files in c:\backup and if so delete them
  66. @echo Changing to Drive %1
  67. @%1
  68. @echo Changing to Subdirectory \backup
  69. @cd \backup
  70. @rem
  71. @rem CAUTION!!!  This next line deletes ALL files in c:\backup!  Have nothing
  72. @rem in C:\backup that you want to keep.  Only copies of files should end up
  73. @rem in C:\backup!!!
  74. @rem
  75. @echo Deleting any files found in \backup
  76. @for %%f in (*.*) do del %%f
  77. @rem
  78. @rem switch back to our home directory
  79. @echo Changing to Subdirectory %2
  80. @cd %2
  81. @rem
  82. @rem
  83. @rem copy some files from, e.g., drive D:\001 to drive C:\backup
  84. @echo Copying requested files from %3\%4\%5 to %1\backup\
  85. @instfreq /%3%4\%5 /%1\backup\
  86. @rem
  87. @echo Changing to Drive %3
  88. @rem switch to drive D:, C: or whatever
  89. @%3
  90. @rem
  91. @echo Changing to Subdirectory %4
  92. @rem switch to, e.g., subdirectory 001
  93. @cd %4
  94. @rem
  95. @rem if there's a files.bbs there then copy it to c:\backup
  96. @if exist files.bbs copy files.bbs c:\backup
  97. @rem
  98. @echo Changing to Drive %1
  99. @rem switch to drive C:
  100. @%1
  101. @rem
  102. @rem wait for a key press
  103. @pause
  104. @echo Changing to Subdirectory %2
  105. @rem switch back to home subdirectory
  106. %1
  107. @cd %2
  108. @rem
  109. @rem start up flydirx on c:\backup as an outtie with a dlc of -1
  110. @rem    Remember....  you will have to experiment with the dlc to get it to
  111. @rem    line up correctly
  112. @echo Initiating FlyDirx on files in %1\backup
  113. @flydirx %1\backup OUT %6
  114. @rem
  115. @echo Looking for and, if found, killing off a files.bbs in %1\backup
  116. @rem kill the files.bbs on C:\backup if there is one
  117. @if exist %1\backup\files.bbs del %1\backup\files.bbs
  118. @rem
  119. @echo Looking for and, if found, copying your backup.lst to %1\backup
  120. @rem copy the backup.lst that is in the present subdirectory back to c:\backup
  121. @if exist backup.lst copy backup.lst %1\backup
  122. @rem
  123. @echo Looking for and, if found, killing off your backup.lst in %1%2
  124. @rem delete the backup.lst (which is an outtie) from the present subdirectory
  125. @if exist backup.lst del backup.lst
  126. @rem
  127. @echo Changing to %1\backup
  128. @rem switch to %1\backup
  129. @cd \backup
  130. @rem
  131. @rem rename backup.lst (which is an outtie) to dirx.lst (which is an innie)
  132. @echo Renaming your backup.lst to dirx.lst
  133. @ren backup.lst dirx.lst
  134. @rem
  135. @rem switch back to the present subdirectory and end
  136. @echo Switching back to %1%2
  137. @cd %2
  138. @echo All done!  Your %5 files are online!  Thanks.
  139.