Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping to network drive using .BAT file
Message
From
23/03/2004 12:55:47
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00888895
Message ID:
00888942
Views:
14
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
Next
Reply
Map
View

Click here to load this message in the networking platform