...

View Full Version : Relative root on CD



codegoboom
04-09-2005, 08:05 PM
file Protocol (http://msdn.microsoft.com/workshop/networking/predefined/file.asp)... a single '\' is equivalent to specifying the root directory on the primary local drive. On most computers, this is C:\.

So would '\' lead to the primary local drive from content on a CD, or point to its drive letter?

codegoboom
04-09-2005, 11:32 PM
And the answer is: '\' is relative to the CD drive, in that case... :cool:

rpgfan3233
04-09-2005, 11:42 PM
Actually, a "\" in front of a path expression takes you to the root and navigates using the path in the same way that "/" in front of a path expression in HTML takes you to the root and navigates. It's an ABSOLUTE path. Without the "/", it is just a relative reference.

Basically:
"\home\orange\foo.exe" means
- "D:\home\orange\foo.exe"

"home\orange\foo.exe" can mean
- "D:\blah\home\orange\foo.exe"
- "D:\home\orange\foo.exe"

Hope this helps people in the future!

codegoboom
04-09-2005, 11:55 PM
Yeah, apparently, the '\' namespace is relative to the root directory--whatever that may be. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum