Hello,
I'm trying to write a batch file to backup a certain folder's contents to another machine over the network.
Here's the code I'm using:
echo dave | net use /user:dave x: \\computer2\share
I'm mapping the drive with this line, the user name is dave and the password is dave.
I used the echo command so that when it prompts for a password it would have it to put in, but it doesn't seem to be working right.
Can anybody hlep me out with this.
The next line is working fine, its the first one I'm struggling with.
xcopy c:\aloha\*.* /S /D /Y x:\alohabackupdata\
Thanks in advance.