`file("c:foo.txt")` loses the volume, i.e. it becomes `foo.txt` relative to the current directory, not the current directory on drive C. Incidentally, `dir("c:foo.dir")` works as expected.