<div class="gmail_quote">On 25 November 2011 13:56, Antoine Koener <span dir="ltr"><<a href="mailto:antoine.koener@gmail.com">antoine.koener@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="gmail_quote">If this really bugs you, note that windows doesn't really care about / or \\<br><br>cd C:/Program Files/Putty gets you in the putty directory...<br><br>Shell completion (cmd.exe) may not work but, Win32 CreateFile works flawlessly...<br>
<br>Then I would suggest that you don't have to bother with "nativename" anymore 
<div>
<div class="h5"><br> </div></div></div></blockquote>
<div> </div>
<div>I can live with that, but I do need filename:join to behave itself when the first path is a drive letter. My requirement is to locate the equivalent of the home directory on windows platforms. I'm currently checking for the %USERPROFILE% environment variable, and if this is missing I fall back to %HOMEDRIVE% <a href="file://%20%25homepath%25/">\\ %HOMEPATH%</a> and it was doing this that alerted me to this unexpected behaviour in the filename module. </div>

<div> </div>
<div>Is there a better way of locating the user's home/profile directory on windows platforms in general? I will happily use some other API if it's available.</div>
<div> </div>
<div>Cheers,</div>
<div> </div>
<div>Tim</div></div>