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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to open secured.mdw

Status
Not open for further replies.

benniesanders

Programmer
Jan 20, 2002
199
US
Hello there, I have the following shortcut that I'm supposed to turn into a batch file, but it's not recognizing the /wrkgrp command. Here's what I have:
Code:
start "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"  "c:\db.mdb" /WRKGRP "c:\secured.mdw"

In a regular shortcut
Code:
"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "c:\db.mdb" /WRKGRP "c:\secured.mdw"
this works fine. What am I missing for the batch file or can it even be done? many thanks for any thoughts.
 
Try it without the word start

Rob! [Bigcheeks]
Process and Procedure are the last hiding place of people without the wit
and wisdom to do their job properly.
 
This isn't a desktop shortcut. You have to have "start" in a batch file. Thanks anyway.
 
HI,

This is my batch file, as you can see I don't use start and it opens for me, this is based on the alphabet city dataworks solution

rem make the directories (no harm if they're already there)
c:
cd\
mkdir Horace
cd Horace


rem Copy a new front end if the newest version file is not present
if not exist "C:\Horace\DBVer1.txt" copy "F:\DBV1.mdb"
if not exist "C:\Horace\DBVer1.txt" copy "F:\DBVer1.txt"
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "C:\Horace\DBV1.mdb" /wrkgrp "F:\DB.MDW"

Rob! [Bigcheeks]
Process and Procedure are the last hiding place of people without the wit
and wisdom to do their job properly.
 
Hey thanks, Rob!! I'll give that a try. I had tried it already without the word "start", but I'll try your way. It won't hurt to have the "look for db, copy if missing" code either. Thanks again and I'll let you know if it works. If it worked for you then it'll probably work for me.
 
Hi Rob,

what I did not know is that the IT Manager is using Citrix on that server, so we simply added an application, put the command line where it was supposed to go (with the /wrkgrp switch) and it's working fine now. Many thanks for your helpful tips!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top