Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 07 Aug 2008 11:43:04 -0400,    group: microsoft.public.win32.programmer.wmi        back       


Copy Files from remote to local system   
Hello,

My task is to copy sets of files from remote systems to local
system.  The remote systems have to be accessed securely by
authentication.  The script runs on the local system.

With WMI (in vbscript), I can use my credentials to log in and
retrieve the list of files to be transferred.  However, I cannot work
out how to copy the files once I have the list.

I see many examples of copying files from local to remote, through
Google &c.  But, not the reverse.

This does not work:

For Each oFile in FilesList
    oFile.Copy("\\system\share")
Next

It returns error code 9, which I believe is "invalid object," for each file.

This works but copies the file to the specified folder on the remote system:

For Each oFile in FilesList
    oFile.Copy("C:\share")
Next

That's not useful.  ;-)

Can somebody help me out with this problem?

Thanks.

mp

-- 
Michael Powe		michael@trollope.org		Naugatuck CT USA

 You may worry about your hair-do today, but tomorrow much peanut butter will
 be sold.
date: Thu, 07 Aug 2008 11:43:04 -0400   author:   Michael Powe michael+

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us