Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an array to copy a range of files.

Status
Not open for further replies.

mrdecrypter

IS-IT--Management
Aug 18, 2005
24
US
Hello all. I am trying to Create a VBScript that can copy a range of files based on the time they were created. The files are all named with the time and date they were created, but in 24 hour time. I am going to design it to prompt the user for the start time and end time. So if they wanted to copy all files that were created at 1300-1500 hours, they would specify 1300 as the start and 1500 as the end time, thus copying all files that fall within that time frame. I figured this situation calls for an array, or does anyone have a better suggestion? Perhaps using the real windows time stamp for the file? Thanks for your input.
 
you would not need an array. Research the following objects:

FileSystemObject
Folder Object
Folder.Files Collection
File Object
File.DateCreated Property

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top