Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / November 2005

Tip: Looking for answers? Try searching our database.

Can I get a truename or canonical filename without using interop?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Houben - 17 Nov 2005 06:45 GMT
I want to know that two forms of an absolute filename reference the same
file.  How would I do this without using interop, or is it even possible?

TIA,
David Thielen - 29 Nov 2005 04:46 GMT
Hello;

I think it is not possible because x:\data\file.dat may also be
\\server\share\file.dat where x: is \\server\root. You have no way of knowing
the directory root vs share point to on a server.

Signature

thanks - dave

> I want to know that two forms of an absolute filename reference the same
> file.  How would I do this without using interop, or is it even possible?
>
> TIA,
Raoul James - 29 Nov 2005 17:23 GMT
I agree that drive mappings can be hard to deal with, but what I'm looking
for is more things like this:

c:\mydir\myfilename.ext
\mydir\myfilename.ext
c:\mydir\myfile~1.ext

Java gives me a way to do this.  I can create a file object and ask for the
canonical name.

I suspect that you're right.  Everything I've found suggests that I'll have
to live without this functionality.

Thanks for the response!

> Hello;
>
[quoted text clipped - 7 lines]
>>
>> TIA,
David Thielen - 29 Nov 2005 17:40 GMT
For that look at the FileInfo class - I think it can give you what you want.

Signature

thanks - dave

> I agree that drive mappings can be hard to deal with, but what I'm looking
> for is more things like this:
[quoted text clipped - 22 lines]
> >>
> >> TIA,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.