Batch file to open secure file /wrkgrp switch won't work

G

Guest

Hi, I need a batch file to open the following, but mine isn't working:

start "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"
"c:\mydatabase.mdb" /WRKGRP "c:\secured.mdw"

The switch isn't being recognized. What am I missing? Thanks.
 
R

Rick Brandt

meldrape said:
Hi, I need a batch file to open the following, but mine isn't working:

start "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"
"c:\mydatabase.mdb" /WRKGRP "c:\secured.mdw"

The switch isn't being recognized. What am I missing? Thanks.

How do you know? Are you getting an error? The syntax of the command looks
okay to me.
 
G

Guest

Hi Rick,

Thanks for your reply.

Yes, I am getting the typical error you get when you try to open a secured
database directly. The batch command is bypassing the switch. Syntax looked
good to me too. I did a lot of shifting things around before I finally
posted. So, it's not the end of the world, a shortcut will work. But the
batch file is cleaner because we can run it in our startup script.

If you have any other ideas, let me know. Many thanks again.
 

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