SysFolder
Description: |
baSysFolder gets the location of a system directory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Platforms: |
Windows and Macintosh | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Usage: |
Result = baSysFolder( Folder ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Arguments: |
String.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Returns: |
String. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples: |
Director: Authorware: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes: |
The string that is returned will always end with a folder separator. On Windows, as well as the above folders, you can also pass in the number of a special folder. These numbers are listed in the ShlObj.h header file in the Windows Platform SDK. For example, to get the Cookies folder, you can use baSysFolder( "33" ). If you pass in a number, it will be passed directly to the SHGetSpecialFolderLocation API call. The numbers in the header file are listed n hex, you will need to convert them to decimal to use this function. On Macintosh, you can also use a four character code to find other folders. For example, you can use baSysFolder( “laun” ) to find the Launcher Items folder. You can find a list of the possible folder codes in the <Folders.h> programming header file in the Universal Headers available from Apple. Not all of the listed folders will be available on all systems or under all Mac OS versions. On Macintosh, the folders exist in domains - User, Local or System. This function attempts to find the most appropriate domain for the folder. To explicitly search in a particular domain, add "user", "local" or "system" to the folder name. For example: put baSysFolder( "libary" ) put baSysFolder( "system library" ) Not all folders will exist in all domains. |