Given a path determine root of drive or mount point

Discussion in 'Scripting' started by Steven Andrews, Feb 18, 2009.

  1. 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:
    That appears to do the job perfectly, I just don't know how to use it in

    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?

    Steven Andrews, Feb 18, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.