@echo off
echo this batch file zips recursively everything from the current directory
echo into one nicely timestamped filename and
echo this batch files needs 7-zip utility
echo download it from http://www.7-zip.org/ or google 7-zip download
:: set the nicetime var
call GetNiceTime.cmd
::delete the previoues zip file
del /q zipFile.zip
:: add the files into a package
zip -r zipFile *
::debug echo nicetime is %niceTime%
::debug pause
::debug echo rename "%cd%\zipFile.zip" %niceTime%.zip.txt
::debug pause
:: make it a txt file for easier e-mail deleting
rename "%cd%\zipFile.zip" "%niceTime%.zip.txt"
::debug pause
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!