PathFromWinPath$()
Syntax
PathFromWinPath$(Path$)
Remarks
Converts the Windows path and filename specified by Path$ to a valid path and filename for the current operating system.
On the Macintosh, drive names, folder names, and filenames are separated by colons (:) instead of backslashes. When converting a Windows path to a valid Macintosh path, Word does the following:
- Substitutes colons for backslashes.
- Substitutes Macintosh drive names for drive letters or root folder specifications: "C:" is replaced by the name of the startup disk; "A:" and "B:" are replaced by the names of the disks in the first and second floppy disk drives, respectively; "D:", "E:", "F:", and so on are replaced by the names of other hard drives. For example, C:\DOCS\STORY.DOC or \DOCS\STORY.DOC might become HD:DOCS:STORY.DOC.
- Removes server names. For example, \\COMMON\TOOLS\ART becomes TOOLS:ART.
- Substitutes colons (:) to represent relative paths (for example, LETTERS\ALICE.DOC becomes :LETTERS:ALICE.DOC and ..\LETTERS\ALICE.DOC becomes ::LETTERS:ALICE.DOC).
Because all Windows filenames are valid on the Macintosh, PathFromWinPath$() does not change the filenames themselves.
See Also
PathFromMacPath$()