Swift
2005-04-14 08:55:11 UTC
Hey everybody,
I want to make a vbs script which will copy only the newest file in a
directory to another location.
For the 'copy' part I've used this syntax:
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "E:\DCIM\100IMAGE\*.jpg", "P:\POORT 5\Foto's sper LKW"
But how can I make sure only the newest file will be copied? Is it possible
to work with a kind of timestamp or something?
Thanks in advance,
Dirk
I want to make a vbs script which will copy only the newest file in a
directory to another location.
For the 'copy' part I've used this syntax:
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "E:\DCIM\100IMAGE\*.jpg", "P:\POORT 5\Foto's sper LKW"
But how can I make sure only the newest file will be copied? Is it possible
to work with a kind of timestamp or something?
Thanks in advance,
Dirk