View Single Post
  #1 (permalink)  
Old 2006-08-22
karimi karimi is offline
Member
 
Join Date: 2005-08-22
Posts: 54
Rep Power: 4
karimi has an average reputation (10+)
Default upgrade_export - file already exists scripting problem

Hello,

i'm using the following batch file on Windows to backup the smartcenter:

#
upgrade_export E:\Backups\YRP_Firewall_Backups\YRP_Backup < cr.txt
#

However, since a backup file already exists, upgrade_export runs, it will say:

The target export file already exists. Do you want to override it?
(y/n) [n] ?

How can I script it such that it sends a "-y" overwrite option, or can I use a $DATE flag like UNIX? Don't know how to do this in Windows!

Thanks!!

~m
Reply With Quote