Director Web : Tips n' Scripts : Platform Specific Issues

Files on the root level of a PC drive

Date:    Wed, 15 Nov 1995 01:18:33 -0500
From:    "Glenn M. Picher" <gpicher@MAINE.COM>
Subject: Re: MAJOR PROBLEM! Files on the root level of a PC drive

>>I have a series of Director files that I am accessing from a PC foratted
>>drive. I can access all the files I have in subdirectories using the
>>relative pathname do-hickies, but I can't seem to get Director to find the
>>file I have on the root level.
I recently had this problem, and found a solution.

The problem is that specifying "c:" as the root level is ambiguous on Windows; "c:" means whatever the current default directory on the C drive happens to be. Be sure you are specifying "c:\" as the root level, or, to be even more explicit, "c:\." (the current directory at the root level). Using "the itemDelimiter", you can extract the drive letter from "the pathname" and add "\.", if necessary.

>>To make matters worse, the file is called "MAIN.DIR" but when I look at the
>>file in the (ick spit!) File Manager it lists the file as "main.dir".
>>Wuzzup?

This is not important. Case is not significant in filenames on either Mac or Windows. This is just a question of how the File Manager chooses to display filenames. A DOS "dir" command reports the same information in all-caps.