rjackmanwyn
asked on
How to use WinZip Or DOS Batch file to copy file with current date
I am using this WinZip command to zip files to be transferred to a remote back up site. Does anyone know if I could include a parameter that would only include the current date to that command? I keep 7 days of backups, but I only want to transfer the current day. Thanks In Advance
WinZip Command
wzzip -a backup.zip *.bak
xcopy Command
xcopy "\\ComputerName\Directory" "D:\Backups" /D /I /E /Y /C /V /R /Z /K /H
What is the exact filename? Does it contain today's date?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The file name varies as there are several back ups in this directory. It does contain words such as [database]backup_20090405[ Time].bak with the date as YYYYMMDD and time
ASKER
Thank You. With your help I figured it out.