Link to home
Start Free TrialLog in
Avatar of rjackmanwyn
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

Open in new window

Avatar of knightEknight
knightEknight
Flag of United States of America image

What is the exact filename?  Does it contain today's date?
ASKER CERTIFIED SOLUTION
Avatar of knightEknight
knightEknight
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rjackmanwyn
rjackmanwyn

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
Thank You. With your help I figured it out.