@echo off echo *************************************************** echo. echo Make backup copies of all inserted cards en sticks echo v1.1 (c) 2006, peter@hasperhoven.net echo. echo *************************************************** // check for TakeCommand (or 4Dos) if "%@eval[2+2]" != "4" exit set DestDir=C:\BACKUP // for all drives do n = %@ASCII[A] to %@ASCII[Z] set d=%@CHAR[%n] // only handle removable drives (floppies, cards, USB pens) IFF %@REMOVABLE[%d:]==1 THEN iff %@READY[%d:]==1 THEN echo %d: is in gebruik (%@LABEL[%d:]) set label=%@LABEL[%d:] // find the disk label if specified, if not, copy to "Drive-X" where X is driveletter iff "%label"=="unlabeled" then set label=Drive-%d endiff set Destination=%DestDir\%label MD %Destination >nul: // don't copy mp3's copy /[!*.mp3] "%d:\*" "%Destination" /S /Z else echo %d: is empty endiff endiff enddo