Jump to content

Recommended Posts

Posted

Is it safe to say all network shares are like this:

\\Nas\nas\myprogram.exe

Or will a mapped drive still have the traditonal Y: ? I am trying to determine if WPI is run from a shared drive, or looking at a shared drive for the install packages.


Posted (edited)

Mapped drives can be assigned any letter that is not in use ("net use <driveletter>: \\nas\nas"). You can list all the mappings using "net use", and you can check if a drive letter is mapped to a network share using "net use <driveletter>:".

So to answer the question, not all network shares will show up as a UNC path. I've ran into this problem before with an install package I was creating. I wanted to map a UNC path to a local path and the only way I could do it was to parse the "net share" output.

Edited by zorphnog

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...