StartupPaths property
Gets or sets the paths where Microsoft Visio looks for add-ons to run when the application is started.
Version added
Visio 4.0
Syntax
| |
| |
strRet |
String. A text string containing a list of folders. Folders are separated by semicolons. |
object |
Required. An expression that returns an Application object. |
pathsStr |
Required String. A text string containing a list of folders; to indicate more than one folder, separate individual items in the path string with semicolons. |
Remarks
The string passed to and received from the StartupPaths property is the same string shown on the File Paths tab in the Options dialog box (click Options on the Tools menu, and then click File Paths). This string is stored in HKEY_CURRENT_USER\Software\Microsoft\Visio\application\StartUpPath.
When the application looks for startup files, it looks in all paths named in the StartupPaths property and all the subfolders of those paths. If you pass the StartupPaths property to the EnumDirectories method, it returns a complete list of fully qualified paths in which the application looks.
If a path is not fully qualified, the application looks for the folder in the folder that contains the Visio program files (appObj.Path). For example, if the Visio executable file is installed in c:\Visio, and the StartupPaths property is "Startup;d:\Startup", the application looks for startup files in both c:\Visio\Startup and d:\Startup.