Link to home
Start Free TrialLog in
Avatar of omegabeta
omegabeta

asked on

Transfer files using VBScript/JavaScript

Daily I am saving data to the computer1. Now  I want to save only the last saved file/directory on the computer2.
I must detect which file/directory is most recent. Once that I have this information, I can copy it to new location.
How can I do this using VBScript/JavaScript?


Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Callandor
Callandor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
use the FSO object loop thro the files/directories
check for the last modified property
and use the move method of the file