boomerangboi
IS-IT--Management
I'm having problems on how to make back up files in my desired path using VISUAL foxpro. My code is this:
PROCEDURE BackUp
bdrive = "C:\bak\"+SUBSTR(DTOS(DATE()),3,6)+".zip"
WAIT "Back-uping Database and tables..." WINDOW NOWAIT NOCLEAR
*! wzzip &bdrive data\sapmis_dbf.dbc data\*.dbf
! pkzip &bdrive data\sapmis.* data\*.dbf data\*.cdx
WAIT "Back-up process completed. Press anykey to close window or wait to close automatically..." WINDOW TIMEOUT 5
ENDPROC
I tried to set the default in my desired path BUT it just make a backup zip once. After that, it don't update the zip file. Is there something wrong with my code? THX in advance.
PROCEDURE BackUp
bdrive = "C:\bak\"+SUBSTR(DTOS(DATE()),3,6)+".zip"
WAIT "Back-uping Database and tables..." WINDOW NOWAIT NOCLEAR
*! wzzip &bdrive data\sapmis_dbf.dbc data\*.dbf
! pkzip &bdrive data\sapmis.* data\*.dbf data\*.cdx
WAIT "Back-up process completed. Press anykey to close window or wait to close automatically..." WINDOW TIMEOUT 5
ENDPROC
I tried to set the default in my desired path BUT it just make a backup zip once. After that, it don't update the zip file. Is there something wrong with my code? THX in advance.