Share via


SET VOLUME Command

Included for backward compatibility. Maps MS-DOS drive designators (A:, B:, C:, and so on) to volumes or folders in FoxPro for Macintosh.

SET VOLUME cMS-DOSDrive TO [cMacintoshPath]

Parameters

  • cMS-DOSDrive
    Specifies an MS-DOS drive designator, and can be any letter from A through Z. The drive delimiter colon, as in A: or C:, is optional.

  • cMacintoshPath
    Specifies a volume name, a volume name with a folder name, a nested folder, or Macintosh shorthand notation (: or ::) or MS-DOS shorthand notation (\ or ..).

    If cMacintoshPath includes a volume or folder name that contains a space, cMacintoshPath must be enclosed in quotation marks. If you include a path in cMacintoshPath that is not fully qualified, the path is relative to the current default folder.

Remarks

Most effective in FoxPro for Macintosh.

SET VOLUME helps move applications created in FoxPro for MS-DOS and Visual FoxPro to FoxPro for Macintosh. For every occurrence of a specified MS-DOS drive designator, FoxPro for Macintosh internally substitutes the Macintosh volume or folder you designate.

When you start FoxPro for Macintosh, there is no default volume or folder designation. However, you can specify a default volume or folder in your Visual FoxPro configuration file with the VOLUME configuration item.

Use DISPLAY STATUS to display the current volume or folder mapping.

Example

The following commands map every occurrence of an MS-DOS C drive to a Macintosh volume named MacHD or Mac HD:

SET VOLUME C: TO MacHD:
SET VOLUME C: TO 'Mac HD:'
SET VOLUME C TO 'Mac HD:'

You can also specify a folder with a Macintosh volume:

SET VOLUME C: TO MacHD:FolderOne
SET VOLUME C TO 'MacHD:Folder One'

You can use MS-DOS and Macintosh shorthand notation as well. To map every occurrence of an MS-DOS C drive to the current Macintosh volume, issue the following command:

SET VOLUME C TO \

To map every occurrence of an MS-DOS C drive to the FoxPro for Macintosh startup volume, issue SET VOLUME without cMacintoshPath:

SET VOLUME C TO

See Also

SYS(5) – Default Drive | SYS(2003) – Current Directory