Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Front-end updates with DOS batch file

Status
Not open for further replies.

cbirknh

Programmer
Jun 28, 2002
14
US
Hi Everyone,
I am running an SQL Server 2000 backend with MSAccess projects (*.adp) front-ends and am struggling to find an automated way to send out revisions to the front ends.

I have created a *.bat file which deletes the old version, inserts the new and opens the program. Unfortunately (as you might expect), this only works if the database is not open. Is there a way to have the .bat file close the database (if open) then run the other commands? By the way, here is the code:

@cls "c:\Program Files\Folder\FrontEnd.adp"
@mkdir "c:\Program Files\Folder"
@del /Q "c:\Program Files\Folder\FrontEnd.adp
@copy "\\Server\Folder\FrontEnd.adp" "c:\Program Files\Folder"
@start msaccess "c:\Program Files\Folder\FrontEnd.adp"

Thanks,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top