PC Review


Reply
Thread Tools Rate Thread

checking path

 
 
Stefi
Guest
Posts: n/a
 
      2nd Jun 2008
Hi All,

I have to check existence of folders. I use DriveExists to check wether the
specified drive exists and it works if the path starts with a drive letter
(e.g. F:\).
But I have path names starting with a server name (e.g. \\s00dt002\) and I
cannot find a way to check the existence of \\s00dt002\ .

Please help!
Thanks,
Stefi

 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      2nd Jun 2008
Hi Steffi,

See how Ron de Bruin's uses a boolean
variable (ExistFolder) with his ChDirNet
function (based on Rob Bovey's code) to
check for specified folders:

http://www.rondebruin.nl/txtcsv.htm



---
Regards.
Norman


"Stefi" <(E-Mail Removed)> wrote in message
news:105C474E-5644-4FFA-B06F-(E-Mail Removed)...
> Hi All,
>
> I have to check existence of folders. I use DriveExists to check wether
> the
> specified drive exists and it works if the path starts with a drive letter
> (e.g. F:\).
> But I have path names starting with a server name (e.g. \\s00dt002\) and I
> cannot find a way to check the existence of \\s00dt002\ .
>
> Please help!
> Thanks,
> Stefi
>


 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      3rd Jun 2008
Hi Norman,

Thank you for your reply! I checked Ron de Bruin's ExistFolder, but it has
the same problem: doesn't work (returns a wrong False value) if path to be
checked consists of only the server name.

My aim is to separate cases of non-existence of a folder:

1. The folder doesn't exist on an existing server.
2. The folder doesn't exist because the server itself doesn't exist (e.g.
its name is mis-spelled).

Any idea?

Regards,
Stefi

„Norman Jones” ezt *rta:

> Hi Steffi,
>
> See how Ron de Bruin's uses a boolean
> variable (ExistFolder) with his ChDirNet
> function (based on Rob Bovey's code) to
> check for specified folders:
>
> http://www.rondebruin.nl/txtcsv.htm
>
>
>
> ---
> Regards.
> Norman
>
>
> "Stefi" <(E-Mail Removed)> wrote in message
> news:105C474E-5644-4FFA-B06F-(E-Mail Removed)...
> > Hi All,
> >
> > I have to check existence of folders. I use DriveExists to check wether
> > the
> > specified drive exists and it works if the path starts with a drive letter
> > (e.g. F:\).
> > But I have path names starting with a server name (e.g. \\s00dt002\) and I
> > cannot find a way to check the existence of \\s00dt002\ .
> >
> > Please help!
> > Thanks,
> > Stefi
> >

>

 
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 to judge whether a path is relative path or absolute path thinktwice Microsoft Windows 2000 CMD Promt 20 7th May 2008 11:06 PM
Conflicting used space information when checking the drive property against marking all files and checking the marked file properties. elloko Windows XP Configuration 3 19th Dec 2004 05:34 AM
Invalid return path checking on inline C++ methods (VS.NET 2003) Michael Kennedy [UB] Microsoft VC .NET 7 25th Oct 2003 09:25 PM
Re: Checking if workbook open (where path is unknown) pfsardella@yahoo.com Microsoft Excel Programming 0 4th Sep 2003 11:13 PM
Checking for a network path? Jim Carlock Microsoft Excel Discussion 0 6th Jul 2003 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 AM.