i'm creating scheduled tasks on windows7 to copy some files to a shared folder on another computer. however, the shared folder required a username and password to have copy permissions. how can i automatically provide the login credentials from the batch file i'm using?
There are a couple of ways, though they are relatively simple:
The syntax of net use is: