Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copying a file to a remote machine

Status
Not open for further replies.

FaaFee

Technical User
Jun 11, 2003
4
US
Hey all, Im trying to copy my eventlogs form a remote machine to my local machine and I cant seem to get it right. Is it possible to backup the eventlogs from a remote machine to my local using a script?

Anyone?
FaaFee
 
You can as long as you have access to the remote machine of course. Try this:

Dim fso

Set fso = CreateObject("FileSystemObject")

fso.CopyFile "\\remote machine name\restofpath.log" "c:\your path"

Hope this works for you,
Shane
 
Code:
Set fso = CreateObject("Scripting.FileSystemObject")
                        ^^^^^^^^^^

Hope This Help
PH.
 
Thanks guys. You guys got me on the right track!

:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top