Copy Files across network on XPe

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

This is somewhat a generic question, but hopefully someone can help.

I have a Batch file that is pushed to the technician's laptop, they then go
in the field and run this batch file to copy some files over to the XPe
systems in order to update the application executables. We normally use
DUA, but in this case a Batch file is easier and more reliable since some of
the systems do not have DUA installed on them.

My question is, sometimes, not always, when Explorer goes to access the
XPe's shared file folders, a Username and Password is asked, sometimes not.
I have not seen it yet using a CMD Prompt, but will DOS File copies across
the network ever require some sort of login? If so, how does one login
under a XP CMD Prompt?

A Simple Example of the Batch file.

sleep 5 'Allows the cmd window to
focus before executing the batch file
pskill \\dl1000 Winlogger.exe 'Kills the running application on the target
sleep 3 'Delays for visual aids only
copy /Y winlogger.cfg "\\DL1000\c\Program Files\Winlogger\"
sleep 3
copy /Y winlogger.exe "\\DL1000\c\Program Files\Winlogger\"
sleep 3
copy /Y version.txt "\\DL1000\c\"
sleep 3
psexec \\dl1000 ewfmgr c: -commit
sleep 3
psshutdown \\dl1000 -r
sleep 3

Thanks,
Richard
 
Richard,

If the network share does not permit guest account access, you will have to create an authentication channel first.
A bunch of ways of doing so but the easiest: network mapping with net.exe.
Try something like : "net use <drive:> <share path> /USER:<user name> password".

It should be really easy to modify your batch file to use a mapped drive name instead of UNC path.
 
Back
Top