hi all
I need my program to automatically back the database up every month
I mad a small backup.bat file in DOS whcih just copies my database to a disk
it is
copy c:\crms.mdb a:\
then in vb i try to execute it by...
dim x
x = shell("c:\backup.bat")
but nothing happens.
is there a way to execute this batch file from VB.
Or does anyone know the better way of doing it...i.e.copying the file to disk straight via VB. I am not sure of those file.copy etc commands
thanks in advance




Reply With Quote