PathInfo
PathInfo [/S /SHOW ] pathName
The PathInfo operation stores information about the named symbolic path in the following variables:
| V_flag | 0 if the symbolic path does not exist, 1 if it does exist. | |
| S_path | Full path using Macintosh path conventions (e.g., "hd:This:That:"). | |
The path returned is a colon-separated path. See Path Separators for details.
Flags
| /S | Presets the next otherwise undirected open or save file dialog to the given disk folder. This flag is ignored when PathInfo is called from a preemptive thread. | |
| /SHOW | Shows the folder, if it exists, in Windows Explorer. This flag is ignored when PathInfo is called from a preemptive thread. | |
Details
The use of PathInfo in a preemptive thread requires Igor Pro 8.00 or later.
Examples
// The following lines perform equivalent actions:
PathInfo/S myPath;Open refNum
Open/P=myPath refNum
// Show Igor's Preferences folder in the Finder/Windows Explorer.
String fullpath= SpecialDirPath("Preferences",0,0,0)
NewPath/O/Q tempPathName, fullpath
PathInfo/SHOW tempPathName