Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping to network drive using .BAT file
Message
 
To
23/03/2004 12:55:47
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00888895
Message ID:
00888946
Views:
15
*ShellExecute Returns a value greater than 32 if successful,
*otherwise an error value that is less than or equal to 32

Some of the errors :

*SE_ERR_FNF(2)
*The file could not be found.
*SE_ERR_PNF(3)
*The path could not be found.
*SE_ERR_ACCESSDENIED(5)
*Access was denied.
*SE_ERR_OOM(8)
*Windows has insufficient memory to perform the operation.
*ERROR_BAD_FORMAT (11)
*The specified executable file was somehow invalid.
*SE_ERR_SHARE(26)
*A sharing violation occured.
*SE_ERR_ASSOCINCOMPLETE(27)
*The filename association is either incomplete or invalid.
*SE_ERR_DDETIMEOUT(28)
*The DDE transaction was not completed because the request timed out.
*SE_ERR_DDEFAIL(29)
*The DDE transaction failed.
*SE_ERR_DDEBUSY(30)
*The DDE action could not run because other DDE actions are in process.
*SE_ERR_NOASSOC(31)
*There is no program associated with the specified type of file.
*SE_ERR_DLLNOTFOUND(32)
*A required DLL file could not be found.


>Yuri--
>
>>Perhaps this:
>>
>>DECLARE INTEGER ShellExecute ;
>>			    IN SHELL32.DLL ;
>>			    INTEGER nWinHandle,;
>>			    STRING cOperation,;
>>			    STRING cFileName,;
>>			    STRING cParameters,;
>>			    STRING cDirectory,;
>>			    INTEGER nShowWindow
>>
>>?ShellExecute(0,"open","net"," USE R: /D","",0)
>>?ShellExecute(0,"open","net"," USE R: \\W0028109792\DATAWARE","",0)
>>
>>clear dlls
>>
>>
>>
>I tried this. It appears that I am getting control back before the map is complete. If I delay using the R drive for a bit, it is there. If I try to use it immediately, it is not there. What is the best way to wait for the map to be complete?
>
>I am getting a return of 42 from ShellExecute. What are the return values?
>
>Thanks.
>
>Tim
Previous
Reply
Map
View

Click here to load this message in the networking platform