Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Check Date Modified  (Read 2405 times)

0 Members and 1 Guest are viewing this topic.

pipipo

    Topic Starter


    Greenhorn

    Check Date Modified
    « on: March 17, 2008, 03:08:08 AM »
    Hi all,

    I want to know if i can check the date modified of a certain file from X drive and transfer to U drive.

    If the date modified for the file in U drive is updated then it will do nothing. But if its different from the one in X drive than it will copy the one in X drive to U drive.

    Tried searching for it. But they all give me some weird links.

    Can anyone help?
    Thanks in advance

    pipipo

      Topic Starter


      Greenhorn

      Re: Check Date Modified
      « Reply #1 on: March 17, 2008, 08:14:14 PM »
      I know how to copy the files from one drive to another. but dont know if i can check the date modified.. can anyone help.. thanks

      Dusty



        Egghead

      • I could if she would, but she won't so I don't.
      • Thanked: 75
      • Experience: Beginner
      • OS: Windows XP
      Re: Check Date Modified
      « Reply #2 on: March 18, 2008, 01:43:18 AM »
      You don't mention your OS but at the XP Command Prompt, or in a script, you could use DIR with the /TW parameter to display the date written (DIR PATH\FILENAME.EXT).   I cannot find that the "date modified" is available.  If you accept that the date written and date modified are the same then /TW will give you a start at what you want.

      Then you could extract the date written for both files (on U and X drives) and compare them.  If the date written on the source file is later than that of the destination file you could then copy.

      Good luck.
      One good deed is worth more than a year of good intentions.

      WillyW



        Specialist
      • Thanked: 29
      • Experience: Experienced
      • OS: Windows XP
      Re: Check Date Modified
      « Reply #3 on: March 18, 2008, 09:43:48 AM »
      pipipo:

      Is it necessary to do this using just commands available within your os?  (assuming XP).

      Or do you just want to get the job done?

      I ask, because it seems like what you are describing is just what some backup software does.    If you could use one of the free ones out there,  you'd be set.


      .