>I'm working on a process to assign a drive letter to a network share. Part of the interface is a textbox for the user to key in the "correct name". I want to check the entry to be certain that it is accurate. It looks like NetShareGetInfo would allow me to pass in text like "\\mike-win2k\" and give me a success code IF the text is correct AND the computer is turned on. What I'm struggling with is converting the VB example that I have into VFP syntax.
>
>Any suggestions regarding syntax or a different solution would be greatly appreciated!
>
Mike,
In addition to Sergey's suggestion you could also use the GetLogicalDriveStrings API call to obtain a list of drive letters in use. See MSKB#
Q137407 for a sample of how to use this function from within VFP.
George
Ubi caritas et amor, deus ibi est