mritter Posted August 30, 2006 Posted August 30, 2006 Is it safe to say all network shares are like this:\\Nas\nas\myprogram.exeOr 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.
zorphnog Posted August 30, 2006 Posted August 30, 2006 (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 August 30, 2006 by zorphnog
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now