grazie
Try this. It copies the file and adds the date in year_month_day format to
make it easy to see the files by name.
Set fso = CreateObject("Scripting.FileSystemObject")
Dim DateArray
DateArray= Split(Date, "/")
FSO.CopyFile "c:\test.txt",
"d:\test"&"_"&DateArray(2)&"_"&DateArray(0)&"_"&DateArray(1)&".txt"
Set fso = nothing
--
Giovanni Cenati (Aosta, Italy)
Write to user "Reventlov" and domain at katamail com
http://digilander.libero.it/Cenati (VbScript)
Forse non ho capito la domanda, ma non basta un file batch con dentro un
copy c:\dir\log.txt e:\backup\log.txt
Potresti schedularlo per eseguirlo ad una certa ora ogni giorno.
O ti serve anche un "time stamp", cioè qualcosa che aggiunga al nome del file il giorno e
l'ora in cui è stato copiato?
Ne ho visto uno, tempo fa sul ng di vbscript. Forse l'ho salvato.
Giovanni.