Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get environ() into command line

Status
Not open for further replies.

billcam

Technical User
Jun 7, 2001
29
0
0
US
I want to eliminate the Access logon using the Win2000 logon by putting it in my shortcut command line. I can get the username but can't figure out how to get it into the command line. It seems like most of the posts here deal with setting up your own security tables and not using Access built in security. I would prefer to use the Access security already set up if I can. I have even tried a batch file to get the username, assign it to a variable, and plug it into the command line, but I am just not getting it.
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "U:\COMMON\database files\database front end\training.mdb" /user environ("username") /pwd ****** /Wrkgrp "U:\COMMON\database files\system\ppswi.mdw"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top