Is there a way to copy to a network path to a folder that requires credentials using any copy commands without using net use.
Using xcopy you can achieve the goal across network path but I can not get it to take credentials
xcopy /E/R/K C:\folder\ \\XXX.XXX\folder\*.*
This is what I have tried and doesn't work along, with other similar inputs.
robocopy /e C:\folder\ "\\XXX.XXX\folder\ /user:name passwrd"
xcopy /E/R/K C:\folder\ "\\XXX.XXX\folder\*.* /user:name passwrd"
Thanks.