PC Review


Reply
Thread Tools Rate Thread

Batch file ignoring /wrkgrp switch

 
 
Wendy V
Guest
Posts: n/a
 
      31st Dec 2007
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
 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      31st Dec 2007
Wendy V wrote:
> 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?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com




 
Reply With Quote
 
Wendy V
Guest
Posts: n/a
 
      1st Jan 2008
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.

"Rick Brandt" wrote:

> Wendy V wrote:
> > 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?
>
> --
> Rick Brandt, Microsoft Access MVP
> Email (as appropriate) to...
> RBrandt at Hunter dot com
>
>
>
>
>

 
Reply With Quote
 
david
Guest
Posts: n/a
 
      2nd Jan 2008
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)

"Wendy V" <(E-Mail Removed)> wrote in message
news:F865FA9A-FE6B-4657-AA6E-(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/wrkgrp switch not working =?Utf-8?B?QmlsbCBCb2xsaWc=?= Microsoft Access Security 3 11th Feb 2006 03:54 PM
/wrkgrp switch won't work =?Utf-8?B?SmVk?= Microsoft Access Security 5 9th Jan 2006 09:48 PM
/wrkgrp switch =?Utf-8?B?SmFtZXNE?= Microsoft Access Security 3 4th Jan 2006 03:20 PM
Batch file to open secure file /wrkgrp switch won't work =?Utf-8?B?bWVsZHJhcGU=?= Microsoft Access 3 12th Dec 2005 07:05 PM
/wrkgrp switch being ignored Alex Microsoft Access Security 3 5th Oct 2005 10:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 AM.