G
Guest
I have a cmdbutton on a form which opens up ntbackup. the code is below and
all works fine. when ntbacup opens it opens it main menu where you can select
backup / restore / restore and manage media. then the user has to click on
several cmds to finally get a backup done. Is there any VBA code that will
open ntbackup and automatically take it through its steps with out the user
having to do anything??
Private Sub cmdBackupDatabase_Click()
On Error GoTo Err_cmdBackupDatabase_Click
Dim stAppName As String
stAppName = "C:\WINDOWS\system32\ntbackup.exe"
Call Shell(stAppName, 1)
Exit_cmdBackupDatabase_Click:
Exit Sub
Err_cmdBackupDatabase_Click:
MsgBox Err.Description
Resume Exit_cmdBackupDatabase_Click
End Sub
all works fine. when ntbacup opens it opens it main menu where you can select
backup / restore / restore and manage media. then the user has to click on
several cmds to finally get a backup done. Is there any VBA code that will
open ntbackup and automatically take it through its steps with out the user
having to do anything??
Private Sub cmdBackupDatabase_Click()
On Error GoTo Err_cmdBackupDatabase_Click
Dim stAppName As String
stAppName = "C:\WINDOWS\system32\ntbackup.exe"
Call Shell(stAppName, 1)
Exit_cmdBackupDatabase_Click:
Exit Sub
Err_cmdBackupDatabase_Click:
MsgBox Err.Description
Resume Exit_cmdBackupDatabase_Click
End Sub