how can i fetch the 1_attdat.log file from the time attendance machine into my local drive ?

how can i fetch the 1_attlog.dat file from the time attendance machine located on my network into my local drive ?
Thanks.

commented: Don't post the same question twice in one minute. EDIT the original post. -3
Dim objFSO As New FileSystemObject
Dim strSourceFilePath As String
Dim strDestFilePath As String

strSourceFilePath = "\\ComputerName\SharedLocationName\FolderPath\1_attlog.dat"
strDestFilePath = "C:\1_attlog.dat"

objFSO.CopyFile strSourceFilePath, strDestFilePath

Use FileSystemObject and copy the network file using CopyFile method by giving the complete network path of the file:

In the above given code snippet,
ComputerName ----> Name of the computer from which you want to copy the file.
SharedLocationName ----> Shared Folder name on the remote system.
FolderPath ----> Path of the folder in which the file is present.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.