We help IT Professionals succeed at work.

Network App and Shared Docs

Sally_S asked
Last Modified: 2013-11-05
We have a small application (vb.net 2008) that we want to allow users to run from a network server. There are also a couple of Access datafiles that the application needs that are on the server in Shared Documents. In our single user app, we get shared documents using the SHGetFolderPath API. However, when running from a network server, that doesn't work because the path it returns is valid for the server (C:\Users\Public\Documents) but not for a workstation. How can I get a path to shared documents that will work from the workstation so they can access the files?

Thanks for any help
Watch Question

Top Expert 2011
This one is on us!
(Get your first solution completely free - no credit card required)

The solution posted by dj_alik is probably your best option, using UNC paths to access the shared folders directly.  If, however, this is not possible due to security the only other way is to have your server retrieve the requested file and host it for the clients to retrieve.  For instance:

Client Request > Server Access FileStore > Server Copies Locally > Server Returns Path to Local Store > Client Retrieves Document > Server Destroys Temporary Local Filestore


Thanks for the answers. I agree - dj_alik's answer is the one I'll use. Fortunately, we can require that certain permissions be set, so it should work for us.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.