>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao