hmmmmm use arguments
batch file named cleanup.bat
del %1 /q
:eof
use wild card when running this file, cleanup C:\temp\*.*
the /q switch suppresses any are you sure prompts for wildcard deletions
instead of deltree, rmdir should be used
Removes (deletes) a directory.
RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path
/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.
/Q Quiet mode, do not ask if ok to remove a directory tree with /S