Problem running bat file which starts MS Access at the end

Get help with troubleshooting issues
Post Reply
bobbob
Posts: 11
Joined: Wed Dec 23, 2015 10:05 pm

Problem running bat file which starts MS Access at the end

Post by bobbob » Tue Aug 25, 2020 8:24 pm

I have a bat file which updates the latest Access front end file and then opens it. Code is:

@echo off
REM ping anvremote-pc >NUL


REM IF ERRORLEVEL 0 (goto :copyfrontend) ELSE goto :skipcopy
REM :copyfrontend
c:
cd\@ANVdbFrontEnd
copy ANVdbFrontEnd.mde c:\users\boba\@ANV /y
rem :skipcopy
c:
cd\users\boba\@anv
rem ANVdbFrontEnd.mde


cmd /c start MSACCESS c:\users\boba\@ANV\ANVdbFrontEnd.mde

works fine from within a virtual desktop. If I try to set the bat file up as a specific program to run and run it w/o loading the desktop, it starts to load the Access database then closes out.

Suggestions?

Bob

:(

Post Reply