Here's a little snippet I use in my "Robot" program on my BBS. I like to
save all my logs that are generated. So, I wrote a batch file that runs
every Monday morning. The batch file "goes around", gathers up all the
log files, and puts them in my "C:\TEMP" directory. Next, I call the
following part of my program to archive them:
-------CUT--------
'Creates a filename using the current week number.
'Then shells to call an archiver.
$LINK "C:\PB32\EXAMPLE\DATEUNIT.PBU"
CLS
D% = DOY(DATE$) 'Gets the current day
E% = D% / 7 'Calculates the week number
F% = ABS(E%) 'We don't want decimal places
NewFile$ = "C:\TRIBBS\LOGS\CALLWK" + LTRIM$(STR$(F%)) + ".ZIP"
SHELL "PKZIP -EX " + NewFile$ + " C:\TEMP\*.*"
END
-------CUT-----------
OK...I know it's a small & simple program. But, it has been extremely
helpful in my operations of my BBS...:)
-Ron
* RM 1.31 3129 * I am Windoze of Borg. Your disk space will be assimilated.
--- TriToss (tm) Professional 11.0 - #229
---------------
* Origin: * Dynasty BBS * The Home of Crazy Nights Software * (1:110/1065.0)
|