Results 1 to 8 of 8

Thread: Windows file search based on timestamp

  1. #1
    Master Browser PeteSmith's Avatar
    Join Date
    Aug 2004
    Location
    LV-426
    Posts
    661
    Thanks
    44
    Thanked
    45 times in 42 posts
    • PeteSmith's system
      • Motherboard:
      • ABIT IP35 Pro
      • CPU:
      • Q6600 G0
      • Memory:
      • 4x1GB 8500 Crucial Ballistix
      • Storage:
      • System: Crucial 128GB M4 SSD Storage: 2x500GB WD5000AAKS
      • Graphics card(s):
      • GTX 650
      • PSU:
      • Corsair HX 620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 2407WFP-HC

    Windows file search based on timestamp

    Hi, I have about 14000 images in a folder with the following name structure:

    snap_c1_261009_150916.jpg

    The images are from a IP camera, 1 image saved every hour. The above was saved today at 15.09. (and 16 seconds)

    What is the search criteria i need to use to retrieve the image every day for the last 12 months at 9am, 1pm, and 5pm. Bare in mind the time stamp may change slighly everyday, so i need to mask it somehow. I assume i can do this somehow using the date stamp, not sure what the syntax is.

    Main PC : Abit IP35-Pro | Q6600 G0 @ 3GHz | 4x1GB Crucial Ballistix 8500 | MSI N460 GTX HAWX | 1 x Crucial M4 128GB SSD | Antec 182 | Corsair HX620 | Dell 2407WFP-HC | Windows 10 x64
    Server : HP MicroServer N40L | 16 GB RAM | 4 X 1 GB Samsung Spinpoint F1 | ESXi 6.0 NAS : Synology DS-408 - 4 x 3GB WD RED HTPC : Acer Revo RL70 | LibreElec

  2. #2
    Senior[ish] Member Singh400's Avatar
    Join Date
    Jun 2008
    Posts
    2,935
    Thanks
    136
    Thanked
    310 times in 247 posts

    Re: Windows file search based on timestamp

    Should be possible, check out this link. It should give you a good starting point.

    It may also be worth checking out the find and dir commands in cmd line.

    Sorry I couldn't help much! Let us know how you do it in the end!

  3. #3
    Master Browser PeteSmith's Avatar
    Join Date
    Aug 2004
    Location
    LV-426
    Posts
    661
    Thanks
    44
    Thanked
    45 times in 42 posts
    • PeteSmith's system
      • Motherboard:
      • ABIT IP35 Pro
      • CPU:
      • Q6600 G0
      • Memory:
      • 4x1GB 8500 Crucial Ballistix
      • Storage:
      • System: Crucial 128GB M4 SSD Storage: 2x500GB WD5000AAKS
      • Graphics card(s):
      • GTX 650
      • PSU:
      • Corsair HX 620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 2407WFP-HC

    Re: Windows file search based on timestamp

    I looked at this page earlier today after doing a google search, it lists day, month, year etc but not time. Thats the key criteria of this search. For example the following

    datemodified:>‎29/‎01/‎2007 17:32 <29/01/2007 17:34

    returns images on the specified date between two timestamps. But you still need to specify an exact date, meaning i would have to manually change the search criteria 1095 times for every year of photos (assuming i want to retrieve 3 images a day at specified times).

    Does anyone know of a way to apply a mask to this search filter, i.e.

    datemodified:>‎xx/‎xx/‎xxxx 17:32 <xx/xx/xxxx 17:34

    So it would return any images between 17.32 and 17:34 regardless of date.

    I'm starting to think the only way i'm going to do this is by creating an xcopy script or similar. Really was hoping there was a built in filter for this.
    Last edited by PeteSmith; 26-10-2009 at 08:09 PM.
    Main PC : Abit IP35-Pro | Q6600 G0 @ 3GHz | 4x1GB Crucial Ballistix 8500 | MSI N460 GTX HAWX | 1 x Crucial M4 128GB SSD | Antec 182 | Corsair HX620 | Dell 2407WFP-HC | Windows 10 x64
    Server : HP MicroServer N40L | 16 GB RAM | 4 X 1 GB Samsung Spinpoint F1 | ESXi 6.0 NAS : Synology DS-408 - 4 x 3GB WD RED HTPC : Acer Revo RL70 | LibreElec

  4. #4
    Senior[ish] Member Singh400's Avatar
    Join Date
    Jun 2008
    Posts
    2,935
    Thanks
    136
    Thanked
    310 times in 247 posts

    Re: Windows file search based on timestamp

    Quote Originally Posted by PeteSmith View Post
    I looked at this page earlier today after doing a google search, it lists day, month, year etc but not time. Thats the key criteria of this search. For example the following

    datemodified:>‎29/‎01/‎2007 17:32 <29/01/2007 17:34

    returns images on the specified date between two timestamps. But you still need to specify an exact date, meaning i would have to manually change the search criteria 1095 times for every year of photos (assuming i want to retrieve 3 images a day at specified times).

    Does anyone know of a way to apply a mask to this search filter, i.e.

    datemodified:>‎xx/‎xx/‎xxxx 17:32 <xx/xx/xxxx 17:34

    So it would return any images between 17.32 and 17:34 regardless of date.

    I'm starting to think the only way i'm going to do this is by creating an xcopy script or similar. Really was hoping there was a built in filter for this.
    Does * not work? As in...

    Code:
    datemodified:>‎**/**/**** 17:32 <**/**/**** 17:34
    Worth a shot, no?

  5. #5
    Master Browser PeteSmith's Avatar
    Join Date
    Aug 2004
    Location
    LV-426
    Posts
    661
    Thanks
    44
    Thanked
    45 times in 42 posts
    • PeteSmith's system
      • Motherboard:
      • ABIT IP35 Pro
      • CPU:
      • Q6600 G0
      • Memory:
      • 4x1GB 8500 Crucial Ballistix
      • Storage:
      • System: Crucial 128GB M4 SSD Storage: 2x500GB WD5000AAKS
      • Graphics card(s):
      • GTX 650
      • PSU:
      • Corsair HX 620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 2407WFP-HC

    Re: Windows file search based on timestamp

    Quote Originally Posted by Singh400 View Post
    Does * not work? As in...

    Code:
    datemodified:>‎**/**/**** 17:32 <**/**/**** 17:34
    Worth a shot, no?
    Sadly it doesn't.
    Main PC : Abit IP35-Pro | Q6600 G0 @ 3GHz | 4x1GB Crucial Ballistix 8500 | MSI N460 GTX HAWX | 1 x Crucial M4 128GB SSD | Antec 182 | Corsair HX620 | Dell 2407WFP-HC | Windows 10 x64
    Server : HP MicroServer N40L | 16 GB RAM | 4 X 1 GB Samsung Spinpoint F1 | ESXi 6.0 NAS : Synology DS-408 - 4 x 3GB WD RED HTPC : Acer Revo RL70 | LibreElec

  6. #6
    YUKIKAZE arthurleung's Avatar
    Join Date
    Feb 2005
    Location
    Aberdeen
    Posts
    3,280
    Thanks
    8
    Thanked
    88 times in 83 posts
    • arthurleung's system
      • Motherboard:
      • Asus P5E (Rampage Formula 0902)
      • CPU:
      • Intel Core2Quad Q9550 3.6Ghz 1.2V
      • Memory:
      • A-Data DDR2-800 2x2GB CL4
      • Storage:
      • 4x1TB WD1000FYPS @ RAID5 3Ware 9500S-8 / 3x 1TB Samsung Ecogreen F2
      • Graphics card(s):
      • GeCube HD4870 512MB
      • PSU:
      • Corsair VX450
      • Case:
      • Antec P180
      • Operating System:
      • Windows Server 2008 Standard
      • Monitor(s):
      • Dell Ultrasharp 2709W + 2001FP
      • Internet:
      • Be*Unlimited 20Mbps

    Re: Windows file search based on timestamp

    Can you not use some other tools. Plenty of file managers around, like Total Commander.
    Workstation 1: Intel i7 950 @ 3.8Ghz / X58 / 12GB DDR3-1600 / HD4870 512MB / Antec P180
    Workstation 2: Intel C2Q Q9550 @ 3.6Ghz / X38 / 4GB DDR2-800 / 8400GS 512MB / Open Air
    Workstation 3: Intel Xeon X3350 @ 3.2Ghz / P35 / 4GB DDR2-800 / HD4770 512MB / Shuttle SP35P2
    HTPC: AMD Athlon X4 620 @ 2.6Ghz / 780G / 4GB DDR2-1000 / Antec Mini P180 White
    Mobile Workstation: Intel C2D T8300 @ 2.4Ghz / GM965 / 3GB DDR2-667 / DELL Inspiron 1525 / 6+6+9 Cell Battery

    Display (Monitor): DELL Ultrasharp 2709W + DELL Ultrasharp 2001FP
    Display (Projector): Epson TW-3500 1080p
    Speakers: Creative Megaworks THX550 5.1
    Headphones: Etymotic hf2 / Ultimate Ears Triple.fi 10 Pro

    Storage: 8x2TB Hitachi @ DELL PERC 6/i RAID6 / 13TB Non-RAID Across 12 HDDs
    Consoles: PS3 Slim 120GB / Xbox 360 Arcade 20GB / PS2

  7. #7
    Master Browser PeteSmith's Avatar
    Join Date
    Aug 2004
    Location
    LV-426
    Posts
    661
    Thanks
    44
    Thanked
    45 times in 42 posts
    • PeteSmith's system
      • Motherboard:
      • ABIT IP35 Pro
      • CPU:
      • Q6600 G0
      • Memory:
      • 4x1GB 8500 Crucial Ballistix
      • Storage:
      • System: Crucial 128GB M4 SSD Storage: 2x500GB WD5000AAKS
      • Graphics card(s):
      • GTX 650
      • PSU:
      • Corsair HX 620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 2407WFP-HC

    Re: Windows file search based on timestamp

    Quote Originally Posted by arthurleung View Post
    Can you not use some other tools. Plenty of file managers around, like Total Commander.
    From what i can see i have the same problem with Total Commander as i did with the windows search, i can't search by time stamp alone.
    Main PC : Abit IP35-Pro | Q6600 G0 @ 3GHz | 4x1GB Crucial Ballistix 8500 | MSI N460 GTX HAWX | 1 x Crucial M4 128GB SSD | Antec 182 | Corsair HX620 | Dell 2407WFP-HC | Windows 10 x64
    Server : HP MicroServer N40L | 16 GB RAM | 4 X 1 GB Samsung Spinpoint F1 | ESXi 6.0 NAS : Synology DS-408 - 4 x 3GB WD RED HTPC : Acer Revo RL70 | LibreElec

  8. #8
    Master Browser PeteSmith's Avatar
    Join Date
    Aug 2004
    Location
    LV-426
    Posts
    661
    Thanks
    44
    Thanked
    45 times in 42 posts
    • PeteSmith's system
      • Motherboard:
      • ABIT IP35 Pro
      • CPU:
      • Q6600 G0
      • Memory:
      • 4x1GB 8500 Crucial Ballistix
      • Storage:
      • System: Crucial 128GB M4 SSD Storage: 2x500GB WD5000AAKS
      • Graphics card(s):
      • GTX 650
      • PSU:
      • Corsair HX 620
      • Case:
      • Antec P182
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell 2407WFP-HC

    Re: Windows file search based on timestamp

    Well i did it, for those interested here's how:

    I output the file attributes for each picture in the directory to excel, using the following batch commands:

    dir %1 > C:\Users\<username>\Desktop\filelist.xls
    start /max C:\Users\<username>\Desktop\filelist.xls
    exit

    once the file list was in excel i could use text to columns to remove the time stamp from the date using space as the delimiter. I could then filter and sort on time alone, as i required. This reduced the number of images from ~27000 to 1882.

    I saved the list from excel to a text file. I then used the following command to copy the files listed in the text file to a new directory.

    for /f %a in ('type C:\Users\<username>\Desktop\filelist.xls') do copy %a C:\temp\pics

    Easy when you know how, can't help but think this could of been so much easier if the OS recognises the date and time stamps seperately.
    Main PC : Abit IP35-Pro | Q6600 G0 @ 3GHz | 4x1GB Crucial Ballistix 8500 | MSI N460 GTX HAWX | 1 x Crucial M4 128GB SSD | Antec 182 | Corsair HX620 | Dell 2407WFP-HC | Windows 10 x64
    Server : HP MicroServer N40L | 16 GB RAM | 4 X 1 GB Samsung Spinpoint F1 | ESXi 6.0 NAS : Synology DS-408 - 4 x 3GB WD RED HTPC : Acer Revo RL70 | LibreElec

  9. Received thanks from:

    Singh400 (05-11-2009)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 14-07-2009, 10:41 AM
  2. Need help on my maxtor harddrives
    By arthurleung in forum PC Hardware and Components
    Replies: 10
    Last Post: 12-06-2007, 09:40 PM
  3. Multiple problems - help!
    By Ruggerbugger in forum Help! Quick Relief From Tech Headaches
    Replies: 7
    Last Post: 18-08-2006, 11:41 PM
  4. System Perfomance help
    By danjohadley in forum Help! Quick Relief From Tech Headaches
    Replies: 26
    Last Post: 24-06-2006, 09:40 PM
  5. New Windows Updates out peeps
    By Skii in forum Software
    Replies: 10
    Last Post: 04-08-2004, 06:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •