PDefaultDir

Sets the specified path as the default folder for subsequent commands that access files.


Command constructor

PDefaultDir(const char * sPath);
Path to desired disk and folders (maximum of 91 characters)
Default folder reset. PageMaker automatically resets the default folder to the folder last accessed when opening, placing, exporting, or saving with either File > Save As or the PSaveAs command.

No trailing backslash; trailing colon optional. In PageMaker for Windows, do not end your path with a backslash. In PageMaker for the Macintosh, while you can end the path with a colon, it is not required. The PGetDefaultDir query returns the Windows path without the backslash (unless it is the root folder, for example, c:\) and the Macintosh path with a trailing colon.

Specified folder doesn't exist. If the default folder specified in the sPath parameter does not exist, PageMaker returns to the current default folder.

Examples. The following example sets the default path to the disk "mydisk" and the "artfiles" folder on the Macintosh.

PDefaultDir("mydisk:artfiles");

The following example sets the default path to the folder "mydir"and the "mysubdir" subfolder in Windows.

PDefaultDir("c:\mydir\mysubdir");


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support