COPYING FILES

  • Thread starter Thread starter SURESH
  • Start date Start date
S

SURESH

dear friends...

i want your help in this regard....

i want to copy some files from B:\ (map drive) to D:\ (local drive)... i
dont want copy only the file which is yesturday modified/or new file.

is there any way in knowledge to fulfill my requirement...

thanks in advance..

suresh tp
 
Dear Suresh,

Why not try the FileSystemObject as shown below.

You can then check the DateCreated property.

Sub ShowFileInfo(filespec)
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
s = "Created: " & f.DateCreated
MsgBox s
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top