>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 make a connection to a shared folder using the Win32 API (WNetAddConnection(), WNetAddConnection2() or WNetAddConnection3() are capable of connecting to a folder with share-level security; WNetAddConnection() will not provide direct access to user-level shares unless the current userid is a valid user for the folder.) Alternatively, the Windows Script Host's Wscript.Network COM object has a MapNetworkDrive method that could make the needed connection. Once the shared folder is mapped and access has been authenticated, you can freely access the folder via the mapped connection.