Connecting Tech Pros Worldwide Help | Site Map

Determine if file is on local PC

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 16th, 2006, 04:05 AM
robert d via AccessMonster.com
Guest
 
Posts: n/a
Default Determine if file is on local PC

I need to determine for sure if a particular fie is on the user's local PC or
on the server. I have the complete path of the file, let's call it

FullFilePath

How can I unequivocally determine if this is on the local PC or on a server
or other machine. The local computer may have more than one hard drive but if
the file is on any of these local hard drives I would want the code to
produce a result that the file is on the local PC. I guess we'll assume that
if the file is on a jump drive or CD that that is not the local PC.

I guess I'm wary of looking for typical hard drive letters in the file path
to make my determination. Is there another way?

Thank you.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200602/1

  #2  
Old February 16th, 2006, 04:45 AM
salad
Guest
 
Posts: n/a
Default Re: Determine if file is on local PC

robert d via AccessMonster.com wrote:
[color=blue]
> I need to determine for sure if a particular fie is on the user's local PC or
> on the server. I have the complete path of the file, let's call it
>
> FullFilePath
>
> How can I unequivocally determine if this is on the local PC or on a server
> or other machine. The local computer may have more than one hard drive but if
> the file is on any of these local hard drives I would want the code to
> produce a result that the file is on the local PC. I guess we'll assume that
> if the file is on a jump drive or CD that that is not the local PC.
>
> I guess I'm wary of looking for typical hard drive letters in the file path
> to make my determination. Is there another way?
>
> Thank you.
>[/color]
This may or may not assist.
http://www.mvps.org/access/api/api0003.htm
  #3  
Old February 16th, 2006, 01:56 PM
Ted
Guest
 
Posts: n/a
Default Re: Determine if file is on local PC

When you check out the code at the link salad provided
(http://www.mvps.org/access/api/api0003.htm
), do what I did and modify the code to store that data in a table so
you can refer to it later. It is great code and I have integrated it
with several applications I have created where I need to be able to
determine what type of a drive a particular drive is.
Note in the code that it determines if the drive in question is a
network drive as well.
In one case I adapted that code into an application I created that
searched drives and catalogs the files so that I can search for the
files later. I use it to catalog files I have stored on CD, DVDs,
External HDD, etc. Very useful code!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.