Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

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.
0
omegabeta
Asked:
omegabeta
1 Solution
 
CallandorCommented:
Perhaps this question has the answer you are looking for? http://www.experts-exchange.com/Programming/Q_20633723.html
0
 
bhagyeshtCommented:
use the FSO object loop thro the files/directories
check for the last modified property
and use the move method of the file
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now