Menu

Save file without changing date/time

2008-03-28
2012-11-13
  • Nobody/Anonymous

    I am using v4.8.2 and would like to edit a large amount of files and only deleting part of the first line. The problem is I would like to keep the original date/time but Notepad is changing it to the current date/time.
    Is there a possibility to keep the date/time?

    thank you, AtK

     
    • Nobody/Anonymous

      Thank you very much for your information I will try it. I still will continue using Notepad++ it is a super program.

      thanks again
      AtK

       
      • Nobody/Anonymous

        Take a look here:

        "12Ghosts™ FileDate"
        http://www.12ghosts.com/ghosts/filedate.htm

        You can directly download the utility from this link:
        http://www.12ghosts.com/download/12filedate.exe

        12FileDate allows you to backup the current timestamps, to be able to easily recover them. It is not necessary to change the timestamps for that.

        So you can use 12FileDate to create the backup of your timestamps.
        Then you can edit all your files.
        Then you can execute the batch file 12FileDate created to restore all your timestamps!

        The backup file looks something like this:

        REM  12Ghosts FileDate
        REM  http://www.12Ghosts.com/ghosts/filedate.htm

        REM  Run this batch file to re-create the date/time information.
        REM  (Based on an idea by Ruben Boer from Netherlands!)
        REM  Original: <full directory path here>
        "<path to>\12filedate.exe" "<dir path>\&lt;filename>" /silent
        /created:2008/03/28_09:44'00.326 /modified:2008/03/28_09:44'00.529 /accessed:2008/03/28_10:19'07.362
        etc...

         
    • Nobody/Anonymous

      I guess not. Why would you want the filedate not to be changed?

      If you want all files to have the _same_ timestamp, you can use a utility to set those (back) all at once.

       
    • Nobody/Anonymous

      Thank you for your reaction, the reason is the the files are Iomega backup files which I can't get back with the Iomega program. I have to edit them and rename them but in order to keep them as original backup I need the original date/time. This to be able to distinguish them form more recent files with the same name.
      thank you
      AtK

       
      • Nobody/Anonymous

        Perhaps you can store the current timestamp by writing them to a file.

        Changing _a lot of_ files is something I wouldn't use Notepad++ for, but some other utility specifically designed for that job. Perhaps TextCrawler can do this.

        Afterwards, you could create a batch file that sets all the timestamps back. You could use the directory information and some regular expression to extract and create a command to set back the timestamp for each file.