Hi
I want to use a batch file to start the DB. This will check if the Front End is on the users machine and if not copy it over.
It will then check what version of Access they are running and use the appropriate shortcut to open the Database.
This all works fine except that the Batch File does not close down until the Database is closed. Is there anyway to close the Batch File automatically while the database is running?
The Batch file I am using is
Any ideas?
JC
I want to use a batch file to start the DB. This will check if the Front End is on the users machine and if not copy it over.
It will then check what version of Access they are running and use the appropriate shortcut to open the Database.
This all works fine except that the Batch File does not close down until the Database is closed. Is there anyway to close the Batch File automatically while the database is running?
The Batch file I am using is
Code:
@echo off
rem *************************************
rem ** Batch file to copy FE **
rem *************************************
rem ** Copy Database **
if not exist "c:\DB\" md "c:\DB"
if not exist "c:\DB\FE.mdb" copy "NetworkPath\FE.mdb" "c:\DB\FE.mdb"
if exist "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" goto Office10
if exist "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" goto Office11
if exist "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" goto Office
:Office10
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "c:\DB\FE.mdb" /WRKGRP "NetworkPath\Secured.mdw"
goto End
:Office11
"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "c:\DB\FE.mdb" /WRKGRP "NetworkPath\Secured.mdw"
goto End
:Office
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "c:\DB\FE.mdb" /WRKGRP "NetworkPath\Secured.mdw"
goto End
:End
Exit
Any ideas?
JC