W
Wesley
I am attempting to execute a DOS batch file when my access application
closes. It creates the file, but does not execute the batch file. It will
only execute when I click on the norf.bat file
Here is the code.
************************************************************************
Open "Norf.bat" For Output Access Write As #1
Print #1, "@echo off"
Print #1, "del " & strMDBName
Print #1, "" & strEval & ""
Print #1, "Start " & Chr(34) & MSAccessLocation & "msaccess.exe" & Chr(34) &
Chr(32) & Chr(34) & strMDBPath & strMDBName & Chr(34)
Print #1, "Exit"
Close #1
Dim x As Variant
x = shell(CurDir & "\norf.bat")
Application.Quit
VersionCheck_Exit:
Exit Function
VersionCheck_Error:
End Function
***********************************************************************
Does anyone have a suggestions?
Thanks,
Wesley
closes. It creates the file, but does not execute the batch file. It will
only execute when I click on the norf.bat file
Here is the code.
************************************************************************
Open "Norf.bat" For Output Access Write As #1
Print #1, "@echo off"
Print #1, "del " & strMDBName
Print #1, "" & strEval & ""
Print #1, "Start " & Chr(34) & MSAccessLocation & "msaccess.exe" & Chr(34) &
Chr(32) & Chr(34) & strMDBPath & strMDBName & Chr(34)
Print #1, "Exit"
Close #1
Dim x As Variant
x = shell(CurDir & "\norf.bat")
Application.Quit
VersionCheck_Exit:
Exit Function
VersionCheck_Error:
End Function
***********************************************************************
Does anyone have a suggestions?
Thanks,
Wesley