A
Al Moben
My question in short:
How do I get the full path of the installed Access 2000 or Access 2000
Runtime application executable (MSACCESS.EXE)?
And now the long version:
I have created an access database (MyDatabase.mdb) which I want to secure
using user-level security. So I run the security wizard, which successfully
secured my database and created a workgroup database (MyWorkgroup.mdw).
Worked well just as the documentation said, ok.
Now in order to open that secured database MyDatabase.mdb, I have to specify
the name of the workgroup database MyWorkgroup.mdw on the commandline, for
example (all in one line of course):
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"
"C:\MyPath\MyDatabase.mdb" /WRKGRP "C:\MyPath\MyWorkgroup.mdw"
Ok, that work well, just as the documentation said, the Access's security
wizard created a shortcut with that commandline on my desktop.
And that's my problem: The wizard has created that shortcut on *MY* desktop.
Now I want to send these two files (MyDatabase.mdb and MyWorkgroup.mdw) to
my customer, together with a small installer-application written in VB or
VC++. Now that installer has to create these shortcuts on the *customer's*
machine, where Access (or Access Runtime) might be installed on a drive
other than C: and in a path other than \Program Files\Microsoft Office\...
Creating the shortcut would not be the problem (I know how to do that in VB
or VC++ ir IS), but how do I (programatically) find out the path of the
Access executable on the customer's machine?
How do I get the full path of the installed Access 2000 or Access 2000
Runtime application executable (MSACCESS.EXE)?
And now the long version:
I have created an access database (MyDatabase.mdb) which I want to secure
using user-level security. So I run the security wizard, which successfully
secured my database and created a workgroup database (MyWorkgroup.mdw).
Worked well just as the documentation said, ok.
Now in order to open that secured database MyDatabase.mdb, I have to specify
the name of the workgroup database MyWorkgroup.mdw on the commandline, for
example (all in one line of course):
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"
"C:\MyPath\MyDatabase.mdb" /WRKGRP "C:\MyPath\MyWorkgroup.mdw"
Ok, that work well, just as the documentation said, the Access's security
wizard created a shortcut with that commandline on my desktop.
And that's my problem: The wizard has created that shortcut on *MY* desktop.
Now I want to send these two files (MyDatabase.mdb and MyWorkgroup.mdw) to
my customer, together with a small installer-application written in VB or
VC++. Now that installer has to create these shortcuts on the *customer's*
machine, where Access (or Access Runtime) might be installed on a drive
other than C: and in a path other than \Program Files\Microsoft Office\...
Creating the shortcut would not be the problem (I know how to do that in VB
or VC++ ir IS), but how do I (programatically) find out the path of the
Access executable on the customer's machine?