Download on SourceForge

waRmZip.wsf v1.7 (Nov 2005)
Utility to clean up/free up space in a folder (and its subfolders),
* compressing files after a certain number of days (with external program)
* rotating files after a certain number of days/above a certain size
* deleting files and/or empty folders after a certain period of time
* moving files to other folders/disks
___________________________________________


Usage: waRmZip.wsf BASE [/ca:value] [/cp:value] [/cpp:value] [/ce:value]
 [/da:value] [/dc] [/df] [/dr] [/ma:value] [/md:value] [/mb] [/ra:value]
 [/rn:value] [/rp:value] [/fo:value] [/fn:value] [/gt:value] [/lt:value]
 [/r] [/nh] [/t] [/v] [/q] [/log:value]

Options:

  • BASE : base folder where cleanup starts 
  • /ca : compress files after X days 
  • /cp : compress program - command line 
  • /cpp : compress program - command parameters 
  • /ce : compressed file extension 
  • /da : delete files after X days 
  • /dc : delete compressed files too after X days 
  • /df : delete empty folders - only when /r is used 
  • /dr : delete read-only files/folders 
  • /ma : move files after X days 
  • /md : move files to this folder (can be local or UNC)
    the following keywords are substituted:
    $YEAR: YYYY, $MONTH: YYYYMM, $DAY: YYYYMMDD, $HOUR: HH, $COMP: COMPUTERNAME, $WEEKDAY: 1-7 
    e.g: /md:F:\backup\$COMP\logfiles\$DAY 
  • /mb : backup mode - do not delete file after moving 
  • /ra : rotate files after X days (creation date!) 
  • /rn : rotate & create new empty file after rotation 
  • /rp : rotation prefix - D:YYYYMMDD 
  • /fo : filter only - only process files with extension 
  • /fn : filter not - don’t process files with extension 
  • /gt : greater than- only process when larger than 
  • /lt : lesser than - only process when smaller than 
  • /r : recursive - also process subfolders 
  • /nh : no hidden - do not process hidden files/folders 
  • /t : test mode - don’t actually process files - just show what would be done 
  • /v : verbose - show debug output during execution 
  • /q : quiet - no output during execution log
  • /logfile - write output to file
    if filename=’D’ use [script name].YYYYMMDD.log as log file
    if filename=’M’ use [script name].YYYYMM.log as log file
    if no filename given use [script name].log as log file

Examples:

  • waRmZip.wsf /r “C:\Inetpub\ftproot” /da:7 /df /dr /log:c:\Inetpub\ftp_cleanup.log
    clean up FTP folders - delete all files older than 7 days and empty folders, even if read-only 
  • waRmZip.wsf /r /f:.log “C:\WINNT\system32\Logfiles” /da:30 /dc /ca:14 /log:d
    compress all log files older than 14 days, delete all files older than 30 days 
  • waRmZip.wsf /r “C:\Temp” /da:1 /df /q
    delete all files older than 1 day, don’t show output 
  • waRmZip.wsf “d:\server\log” /ra:7 /fo:.txt /gt:1MB /log:d
    rotate all .txt files greater than 1MB created more than 7 days ago 
  • waRmZip.wsf /r /f:.log “C:\WINNT\system32\Logfiles” /ma:7 /md:f:\backup\$YEAR\$COMP\$DAY\IIS
    move all log files older than 7 days to folder F:\backup\2004\server1\20040101\IIS 
  • waRmZip.wsf /r /f:.log “C:\WINNT\system32\Logfiles” /ca:14 /cp:”c:\Program Files\7-Zip\7za.exe” /cpp:”a -tzip $out $in”
    compress all log files older than 14 days with 7-Zip

Download: http://sourceforge.net/projects/winadmin/files/waNoCaps/waNOCAPS%202.0/

====== waNOCAPS =========
 CAPSLOCK  Terminator 2.0
=========================

Does this sound familiar: 
* You've never used the CAPS LOCK key on purpose, you've never needed it. 
* You've accidently pushed the key at least a thousand times. 
* YOU CONTINUE TYPING FOR ABOUT 10-30 SECONDS BEFORE YOU REALISE IT'S ON. 
* You have to retype the whole sentence 
  (You don't have a convert-to-lowercase macro). 
* You have to hit the CAPSLOCK and SHIFT key about 5 times to figure out 
  how to turn it off on this particular keyboard. 

For you, I've created waNOCAPS, the CAPSLOCK Terminator. 
It's not a program, it's a registry adjustment ('hack'). 
Inspiration came from: http://www.nthelp.com/50/remapctl.htm 
It has been tested on Win2000 and WinXP.

USAGE
-----
DISABLE YOUR CAPSLOCK: 
  * double-click disable_caps.reg 
  * reboot 
  * (Your CAPSLOCK actually becomes a 3rd CTRL-key) 
RE-ENABLE YOUR CAPSLOCK: 
  * double-click enable_caps.reg 
  * reboot 


HISTORY
-------
2003-11-03 - v1.0 - first public release
2004-06-15 - v2.0 - fixed occasional freeze on reboot after enable_caps

+======================================================================+
| (c) 2004 WinAdminUtils -  http://winadmin.sourceforge.net by pforret |
| Open Software License  -  http://opensource.org/licenses/osl-1.1.txt |
| The Original Work is provided under this License on an "AS IS" BASIS |
| and WITHOUT WARRANTY,  either express or implied, including, without |
| limitation,  the warranties of NON-INFRINGEMENT,  MERCHANTABILITY or |
| FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY |
| OF THE ORIGINAL WORK IS WITH YOU.                                    |
+======================================================================+