Let's say I want to copy files to a shared folder
\\Network drive\openshare\receive\
Username: Jos
Password: open
How can I make this work in a batch?
Thanks!!!!!
By embedding the password in your batch file (which creates a big security
hole!)
@echo off
net use \\server\share\folder /user:Jos open
xcopy \\server\share\folder\file.ext d:\
Thanks for the solution and the warning about the security hole!
I will use it wisely!
Thanks!
I was wondering if this could be done at startup of the computer?
If I make a batchfile in the startup folder that connects to this
drive it will work.
But is there in XP a more secure way to connect to this drive @
startup?
A way where the password is not visible?
Yes - create an account on the machine that hosts the share. The account
name & password must match your own account name & password. In this case
you will no longer need to supply a password for the copy process. Note also
that this is really a Windows XP question, not a batch question.