Batch file ignoring /wrkgrp switch

W

Wendy V

My batch file contains the following:
START "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE"
"C:\Documents and Settings\wvandenberg\My Documents\041336007 Strathmore WWTP
Discharge\8000\8300\041336007StrathmoreWWTD.mdb" /wrkgrp "C:\Documents and
Settings\wvandenberg\My Documents\041336007 Strathmore WWTP
Discharge\8000\8300\StrathDBSecurity.mdw" /user wvandenberg /pwd ****

However, the batch file is ignoring the /wrkgrp switch and will not open the
database. Am I missing something? Some quotes? Different switch order?

TIA,
Wendy

MS Access 2003
Windows XP
 
R

Rick Brandt

Wendy said:
My batch file contains the following:
START "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE"
"C:\Documents and Settings\wvandenberg\My Documents\041336007
Strathmore WWTP Discharge\8000\8300\041336007StrathmoreWWTD.mdb"
/wrkgrp "C:\Documents and Settings\wvandenberg\My Documents\041336007
Strathmore WWTP Discharge\8000\8300\StrathDBSecurity.mdw" /user
wvandenberg /pwd ****

However, the batch file is ignoring the /wrkgrp switch and will not
open the database. Am I missing something? Some quotes? Different
switch order?

Ignoring those ridiculously complex paths I see nothing to make it not work.

How are you determining that the workgroup is not being correctly set?
 
W

Wendy V

I know the workgroup isn't being set because I get the message "You do not
have the necessary permissions..." and the db doesn't open. However, if I
remove the START command from the batch file, and leave the rest as is, the
db opens with the correct workgroup but the command window stays open until
either the user closes it or the db.
 
D

david

Looks like the environment isn't big enough to hold the path.
Either increase the environment size or use the short path:
c:\progra~1\micros~1\ and so on.

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top