ACC2000: How to Determine Startup Folder of a Program (210192)
The information in this article applies to:
This article was previously published under Q210192 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
You can use the SysCmd() function to perform several functions. One
of these functions is the acSysCmdAccessDir(), which returns the name (<Drive:>\<Path>\) of the folder where Msaccess.exe is located. It does not return the name of the executable file, Msaccess.exe. This article includes two sample functions that you can use to return the name of the folder and the name of the executable file for any program running in the Microsoft Windows environment.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB210192 |
---|
|