?
Solved

Automating wrkgadm.exe

Posted on 2004-10-06
5
Medium Priority
?
286 Views
Last Modified: 2008-02-01
I can't find anything that says yes or no, but is it possible to pass parameters to wrkgadm.exe so I can script it. Our environment has 3 different workgroups that I'm constantly toggling back and forth between. It ends up being a real drag.

Thanks in advance.
Josh
0
Comment
Question by:jalvarez86
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 41

Assisted Solution

by:shanesuebsahakarn
shanesuebsahakarn earned 150 total points
ID: 12239891
Why don't you just start up each appropriate database using its correct workgroup file via the /wrkgrp Access command line parameter?
0
 
LVL 66

Accepted Solution

by:
Jim Horn earned 225 total points
ID: 12239904
You do this by creating a shortcut for your application, then right-click:Properties, and in the "Target" textbox create a shortcut path in the following format:

{Location of msaccess.exe} {Location of your application} /wrkgrp {location of app's .mdw file} /user {username} /pwd {password}

UID and PWD are optional.  Surround anything with spaces with double-quote marks.  So...

"C:\Program Files\Microsoft Office\Office10\Msaccess.exe" C:\MyApp.mdb /wrkgrp c:\MyApp.mdw /user me /pwd foo

Hope this helps.
-JIm
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 12239920
0
 

Author Comment

by:jalvarez86
ID: 12240014
While this is correct, and we use this technique for an end-user's shortcuts, it's not quite what I'm looking for.

I want to script the Workgroup Administrator, not Access. I find that as I am working with multiple files in my development environment, I need to switch workgroups. While I _could_ make shortcuts for each database, I really feel that that would be more trouble than it's worth.
0
 
LVL 66

Expert Comment

by:Jim Horn
ID: 12240042
afaik the Workgroup Administrator file does not accept command switches, so you're only option is to use shortcuts for each database.  
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question