PC Review


Reply
Thread Tools Rate Thread

Determine if 2 files are from the same directory.

 
 
Tim Marsden
Guest
Posts: n/a
 
      3rd Oct 2003
HI

If I have 2 strings each containing a Path string, but in different formats.
e.g.

1. "D:\My Folder\My Sub Folder\A.txt"
and
2. "\\ComputerA\Share B\A.txt"

Now do I compare these to see if they are they reference the same file.

Tim




 
Reply With Quote
 
 
 
 
Kevin Yu
Guest
Posts: n/a
 
      6th Oct 2003
Hi Tim,

I'm afraid there isn't such a way to see if the two paths points to the
same file directly. However, you can partially achieve this in an indirect
way.

If you have write permission to that share folder, you can make some tags
on the file. And then access the file with another path string to see if
the tag is available. This requires that you have write permission to
either folder.

HTH

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Tim Marsden" <(E-Mail Removed)>
| Subject: Determine if 2 files are from the same directory.
| Date: Fri, 3 Oct 2003 11:08:56 +0100
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: dial81-135-52-82.in-addr.btopenworld.com 81.135.52.82
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:143369
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| HI
|
| If I have 2 strings each containing a Path string, but in different
formats.
| e.g.
|
| 1. "D:\My Folder\My Sub Folder\A.txt"
| and
| 2. "\\ComputerA\Share B\A.txt"
|
| Now do I compare these to see if they are they reference the same file.
|
| Tim
|
|
|
|
|

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How determine if directory exists windsurferLA Microsoft Excel Programming 6 3rd Nov 2007 06:14 PM
How to determine directory size? speedy_mike Windows XP General 5 21st Oct 2007 06:00 PM
How to determine How many files in specified directory =?Utf-8?B?QkVFSkFZ?= Microsoft Excel Programming 5 3rd Oct 2006 03:14 PM
How do you determine Windows directory Richard L Rosenheim Microsoft VB .NET 3 23rd Jan 2005 01:04 AM
copying files, files either end up in target directory or root directory of disk Popcorn Microsoft Windows 2000 File System 0 16th Dec 2003 06:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.