Solved

Automating wrkgadm.exe

Posted on 2004-10-06
5
275 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 50 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 65

Accepted Solution

by:
Jim Horn earned 75 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 65

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 65

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

733 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