using batch file

J

JohnE

On each user's machine is a copy of the mde front end. To open it, the user
double clicks an icon. Eventually the icon will be a batch file that will
run some processes and then finally open the mde file that is located on
everyone's machine. But, the batch file is not working properly in that an
"Automation error" appears just as the mde opens. I have traced it thru to
the line below (I've changed companyname to protect the innocent - or stupid).

START "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\Program
Files\companyname\corporate database\corporate database front end 2003.mde"
/wrkgrp "\\MXShared\Database$\companyname.mdw"

All of the information on the line above is correct as far as location.
This line is the target line of the current icon that is used.

If someone who knows batch files sees what's wrong, let me know.

Thanks.
.... John
 
S

Stuart McCall

JohnE said:
On each user's machine is a copy of the mde front end. To open it, the
user
double clicks an icon. Eventually the icon will be a batch file that will
run some processes and then finally open the mde file that is located on
everyone's machine. But, the batch file is not working properly in that
an
"Automation error" appears just as the mde opens. I have traced it thru
to
the line below (I've changed companyname to protect the innocent - or
stupid).

START "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"
"C:\Program
Files\companyname\corporate database\corporate database front end
2003.mde"
/wrkgrp "\\MXShared\Database$\companyname.mdw"

All of the information on the line above is correct as far as location.
This line is the target line of the current icon that is used.

If someone who knows batch files sees what's wrong, let me know.

Thanks.
... John

Well the syntax and placement of quotes is all correct AFAICS. Try removing
the START command from the beginning of the line.
 
J

JohnE

It worked! So simple.
Thanks.
.... John



Stuart McCall said:
Well the syntax and placement of quotes is all correct AFAICS. Try removing
the START command from the beginning of the line.
 
Top