Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Given a path determine root of drive or mount point

Reply
Thread Tools Display Modes

Given a path determine root of drive or mount point

 
 
Steven Andrews
Guest
Posts: n/a

 
      02-18-2009
Hi all

What I'm looking for is to determine: Given a path (IE: c:\program
files\exchsrvr\mdbdata) is the root of the drive c or is it a mount
point (IE: a drive mounted at the exchsrvr folder)

I think it is possible to, given the path of mount point, to check it is
a mount point, but not if the path given was one deeper.

If this were not a vbscript program, the answer would be at:
http://msdn.microsoft.com/en-us/libr...96(VS.85).aspx
That appears to do the job perfectly, I just don't know how to use it in
vbscript!

The only other thing I can think of is to get the path, remove one
folder at a time, check for a mount point, and repeat, until we find the
root or a mount point.

I've been looking at win32_logicaldrives, and win32_mountpoint,
win32_diskdrives, win32_volume, but none of these seem to just 'fit'.

Any suggestions?

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Network mount point within file system? Simon Windows Server 6 09-04-2008 09:39 PM
Re: Relative path names don't work with # in root path with local# links C A Upsdell Internet Explorer 0 04-16-2008 01:45 PM
Mount point to remote share DY Windows Server 0 01-17-2008 04:28 PM
mount point of a shared folder Ricardo Coelho Windows Server 0 04-10-2006 08:53 PM
How to Get Mount Point from Device Name Michelle Windows Vista Drivers 1 02-16-2005 04:23 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59