home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
VRAC
/
CDMX2DOR.ZIP
/
FASTFREQ.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-08-13
|
4KB
|
91 lines
@rem FASTFREQ.BAT (sample bat)
@rem
@rem Makes an "innie" (dirx.lst) in c:\backup from files on D:\001\car*.*
@rem for instant user access to previously offline files
@rem
@rem Say a user requests some files that are not anywhere on your download
@rem drives but are on your system somewhere. He wants them right away and
@rem you want to let him at them right away. How to do it? Use this
@rem batfile. You will need to edit some of it. Specifically, you will
@rem need to have a "Requested Files" area already set up on CDMX2DOR (see
@rem my REQBOB.LST as an example). Be sure that your CDSONLIN.LST is
@rem edited to include its being able to access your REQBOB.LST (or whatever
@rem you call it. As you will notice, my REQBOB.LST points to c:\backup
@rem subdirectory so the dirx.lst there must contain a list of the files
@rem that the user is requesting and these files must be in c:\backup for
@rem him to download. The files he wants are on Drive\Sub D:\001 and the
@rem files begin with CAR. My home directory where I am starting this
@rem bat file is C:\cdbob.
@rem
@rem make appropriate changes to c:\backup (your Req'File subdirectory)
@rem make appropriate changes to D:\001\CAR*.* (the file area/type user wants)
@rem make appropriate changes to c:\cdbob (your startup subdirectory)
@rem
@rem You will need to adjust your dlc# as necessary to make it look
@rem right (if there is an associated files.bbs on the D:\001 drive).
@rem Different files.bbs's exist; some have dates/size, some not. If they
@rem do have date/size already in them then a dlc# around -14 ought to get
@rem it right in the dirx.lst; if they don't have date/size, then a 0 will
@rem get it about right. If you have download counters in those files.bbs's
@rem and no date/size info, then you'll need to have the width of your
@rem dl counters from bracket-to-bracket, e.g., dlc#=6 for a [0000] dlc.
@rem Experiment and see what happens.
@rem
@rem Your D:\001\CAR*.* could be a *.zip or a h*.arj or whatever.
@rem
@rem
@rem Bat Start:
@rem -----------------------------------------------------------------------
@rem
@rem see if there are old files in c:\backup and if so delete them
@cd \backup
@rem
@rem CAUTION!!! This next line deletes ALL files in c:\backup! Have nothing
@rem in C:\backup that you want to keep. Only copies of files should end up
@rem in C:\backup!!!
@rem
@for %%f in (*.*) do del %%f
@rem
@rem switch back to our home directory
@cd \cdbob
@rem
@rem
@rem copy car*.* files from drive D:\001 to drive C:\backup
@instfreq /c:\qb45\fr*.* /c:\backup\
@rem
@rem switch to drive D:, C: or whatever
@C:
@rem
@rem switch to subdirectory 001
@cd \qb45
@rem
@rem if there's a files.bbs there then copy it to c:\backup
@if exist files.bbs copy files.bbs c:\backup
@rem
@rem switch to drive C:
@C:
@rem
@rem wait for a key press
@pause
@rem
@rem start up flydirx on c:\backup as an outtie with a dlc of -14
@flydirx c:\backup OUT -14
@rem
@rem kill the files.bbs on C:\backup if there is one
@if exist c:\files.bbs del c:\backup\files.bbs
@rem
@rem copy the backup.lst that is in the present subdirectory back to c:\backup
copy backup.lst c:\backup
@rem
@rem delete the backup.lst (which is an outtie) from the present subdirectory
del backup.lst
@rem
@rem switch to c:\backup
cd \backup
@rem
rem rename backup.lst (which is an outtie) to dirx.lst (which is an innie)
ren backup.lst dirx.lst
@rem
rem switch back to the present subdirectory and end
@cd \cdbob