PC Review


Reply
Thread Tools Rate Thread

Copy Files across network on XPe

 
 
Richard
Guest
Posts: n/a
 
      3rd Jun 2005
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


 
Reply With Quote
 
 
 
 
KM
Guest
Posts: n/a
 
      3rd Jun 2005
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.

--
Regards,
KM, BSquare Corp.


> 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
>
>



 
Reply With Quote
 
Richard
Guest
Posts: n/a
 
      7th Jun 2005
Yep, Your 100% correct, now why did I miss that, too easy!

"KM" <konstmor@nospam_yahoo.com> wrote in message
news:%(E-Mail Removed)...
> 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.
>
> --
> Regards,
> KM, BSquare Corp.
>
>
>> 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
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Network Files to Local Directory, then rename orig files andvice versa ksfrye@gmail.com Microsoft Access VBA Modules 4 1st Feb 2008 03:49 AM
How to copy files across network without using network share =?Utf-8?B?U2Vhbk1hYw==?= Microsoft VB .NET 3 22nd Jun 2007 05:51 PM
Cannot copy certain files over network Joby Larsen Windows XP Networking 2 19th Oct 2006 09:20 AM
Cannot copy files over network =?Utf-8?B?SlJHdW5u?= Microsoft Windows 2000 Networking 1 7th Dec 2004 01:58 AM
Re: Can not copy files over network G Microsoft Windows 2000 Networking 0 31st Jul 2003 07:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 AM.