alexiat
asked on
UNC drive
I am just learning about networks, so I apologize if this is a really stupid question.
If I have an app on a server that uses UNC, do the workstations also use UNC paths? If so, how would I determine if a workstation has a removeable drive? I can do this via drive letter but if there is no drive letter...
Thanks.
If I have an app on a server that uses UNC, do the workstations also use UNC paths? If so, how would I determine if a workstation has a removeable drive? I can do this via drive letter but if there is no drive letter...
Thanks.
A removable drive i.e. USB does not use UNC paths. These are used over networks. If the external drive does not appear in 'My Computer' then you can check what Letter has been given to the drive in 'Disk Management'. It often happens that a share can 'overwrite' a drive letter applied to an external device.
ASKER
Our software needs to be able to write its prefs etc. to a workstation's flash drive or other removeable drive. For example, at a college where our software would be on the server but nothing should be written to a workstations hard drive. I can figure out how to do this in code with a drive letter thanks to previous EE posts, but am floundering a bit the the UNC stuff as I have never dealt with it before.
You should be able to use a UNC if a folder on the drive was shared.
ASKER
Right now I just reiterate through all possible drive letters and check to see if I hit on a removeable drive. So you are saying this would still work?
Please reiterate your question...
ASKER
Sorry for my poor explanation.
Our software will reside on a network server. On our PC version, we write user prefs etc. to where ever Windows designates via CSIDL_LOCAL_APPDATA. However, in our network version we want to allow these prefs to be written to a flash drive or some other removeable media on the workstation instead.
I don't understand if, when the network uses UNC, I can still determine if there is such a drive available for me to write to. If UNC is not used, I simply reiterate through drive letters to see if it is a valid drive and if it is a removeable one. I don't know how to do this with UNC. Or maybe there is no difference.
Thanks.
Our software will reside on a network server. On our PC version, we write user prefs etc. to where ever Windows designates via CSIDL_LOCAL_APPDATA. However, in our network version we want to allow these prefs to be written to a flash drive or some other removeable media on the workstation instead.
I don't understand if, when the network uses UNC, I can still determine if there is such a drive available for me to write to. If UNC is not used, I simply reiterate through drive letters to see if it is a valid drive and if it is a removeable one. I don't know how to do this with UNC. Or maybe there is no difference.
Thanks.
Ok, Interesting... I assume their is a client install on the desktop side that then communicates to the server version?
ASKER
Wow, I don't know if I can feel even dumber but I believe it is about to happen. Here is how it is installed on a PC: our software and its files are installed in Program Files and the user editable data is installed into ProgramData (COMMON_APPDATA). It should be installed that way on the network server too. I will humbly admit I don't know what a "client install on the desktop side" means.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. I will take your advice about redesigning a bit as outlined in your last paragraph. Glad I sought your advice.
Glad to help, take care :-)
I am not sure what your actual question is?? But it seems you have a need to perform a remote detection on computers in your network, in order to determine if they have a CD-ROM Drive? Please elaborate...