Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files to a password protected shared folder
Message
 
 
To
20/03/2000 15:26:03
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00348073
Message ID:
00348091
Views:
24
>I need to copy a set of files to a users shared folder. Such folder is password protected and the Copy File command fails unless you open the target folder and the password has been already provided.
>
>
>Is there any secondary method to accomplish this without the use of a .BAT file?

You can use the Windows Scripting Host to do this.
oWSNetwork = createobject('WScript.Network')
oWSNetwork.MapNetworkDrive('K:','\\MyPC\MyShare',.F.,"username","password")
You can read more about it at http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost/default.htm.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform