Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNC -- Universal Naming Code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00190705
Message ID:
00190878
Views:
14
>>>1) Other than the set printer to name on Windows NT, does VFP handle or process the non drive letter mapped volumes with the Universal Naming Code: \\servername\ResourceNameLikeVolumeOrPrinter
>>>2) If VFP has other uses for the UNC than set printer to name on Windows NT, what are they and how do we use them?
>>
>>I switched my app from mapped drives to UNC and have seen only a couple of problems.
>>1 The setup wizard when given a UNC keeps telling me I am out of disk space and would I like to continue. I choose to continue and after 8 more disk space warnings the wizard completes and everything is OK. I switched the setup wizard back to a mapped drive and everything was OK, so I know it was the UNC that causes the error.
>>2 Since my app has gone to total UNC, I have had to deal with the fact that the user may not be logged in to the server (as they have no mapping, thus they sometimes dont feel they have to log into the server). If anyone out there knows how I can force a log in when my app detects that the UNC does not exist, I would appreciate the help.
>
>You might look at temporarily mapping a drive using WNetAddConnection() and then immediately releasing it using WNetCancelConnection(). the same functionality is availble through Wscript.Network if you have the Windows Scripting Host available. You can trap the return from WNetAddConnection() so that you can tell when a server really is down or the user doesn't have access rights to the targeted share.

Where can I find the documentation on WNetAddConnection()?
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform