Ugh, I forgot about get_filename_component:<br><br>            get_filename_component(VarName FileName<br>                                   PATH|ABSOLUTE|NAME|EXT|NAME_WE|REALPATH<br>                                   [CACHE])<br>

<br>ABSOLUTE seems to normalize the file paths.<br><br>James<br><br><div class="gmail_quote">On Tue, Jul 7, 2009 at 2:48 PM, James Bigler <span dir="ltr">&lt;<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there a way to normalize or flatten a path to a file?<br><br>I have two paths that I need to compare:<br>

<br>C:\path\to\file and C:\path\to\other\..\file<br><br>I need a way to collapse the second paths into something that looks like the first, so that I could use a string comparison on the filenames to see if they point to the same thing.<br>


<br>Thanks,<br><font color="#888888">James<br>
</font></blockquote></div><br>