file.setPath

Syntax file.setPath (path)

Params path is a legal path name to the folder to which you wish to set Frontier's current default path. All subsequent partial paths start in this folder.

Action Sets Frontier's current default path.

Returns True if the path is reset, false otherwise.

Examples file.setPath ("C:\\"); file.exists ("Unzipped")

   » true

file.setPath ("D:\\"); file.exists ("Unzipped")

   » false


file.setPath ("XP150:"); file.exists ("Status Center")

   » true

file.setPath ("Boston:"); file.exists ("No Status Center")

   » false

origPath = file.getPath ();
file.setPath ("System:System Folder:");
msg (file.exists ("Finder"));
file.setPath (origPath)

   » true

The Frontier About Window shows the result of determining if the file "Finder" exists (which should be true). This demonstrates the use of file.getPath to save the current default path before changing it temporarily.

file.setPath ("XP150:"); file.getPath ()

   » XP150:

Notes The path must be a folder or a disk volume.

The primary purpose of this verb is to facilitate the convenient use of partial paths by setting up most of the path name as the default.

See Also file.getPath

Discuss