Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Check if Folder is Shared

Status
Not open for further replies.

alfalf

Programmer
Mar 6, 2003
155
BA
Hello.

Is there a way (besides reading folder attributes), to read if folder is shared?

I want to warn user, when saving report to desired location on disk, that folder is shared and "not safe" (or do nothing if it´s not shared).

Thanks for any suggestions.
 
If not on a win9x box the folder is probably shared via the default X$ where X is the drive letter.
To see what I mean execute the following command in a console window:
NET SHARE

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top