title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Preserve last modified date of old file to the new converted files?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pitoloko

    • Mar 2011
    • 38

    Preserve last modified date of old file to the new converted files?

    Hi

    I need to preserve the last modification date of the files that i convert...

    I mean If a MP3 file have this modification date: "08/02/2012", And i convert that file, The modification date of the new file need to be the same.

    I need a solution for the CLI converter.

    Maybe a DSP effect can do that?

    Or a parameter of the "Coreconverter.exe"?

    Or DOS 3rd party software?



    How i can?

    Thankyou!
    Last edited by pitoloko; February 09, 2012, 08:42 PM.
  • Spoon
    Administrator
    • Apr 2002
    • 44504

    #2
    Re: Preserve last modified date of old file to the new converted files?

    DSP Effect 'Preserve Source Attributes'
    Spoon
    www.dbpoweramp.com

    Comment

    • pitoloko

      • Mar 2011
      • 38

      #3
      Re: Preserve last modified date of old file to the new converted files?

      Originally posted by Spoon
      DSP Effect 'Preserve Source Attributes'
      Thank for your help but when I try that DSP plugin, i have a error:

      Code:
      coreconverter.exe -infile="1.mp3" -outfile="1.mp3" -dspeffect1="Preserve Source Attributes" -convert_to="mp3 (Lame)" -b 192 --cbr -noidtag -priority="high"

      Code:
      Encoding: mp3 (Lame)
      Audio Source: 1.mp3
      Audio Destination: 1.mp3
      DSP Effects: Preserve Source Attributes
      
       0%-----------25%-----------50%-----------75%-----------100%
      
      Conversion Failed.
      Can help me to solve this?

      [COLOR="red"]EDIT[/COLOR]: And if I try to use the GUI with that dsp i can convert the file, good, Creation date stills be the same, but modification date NO. :(

      I'm testing on Windows 7 x64
      Last edited by pitoloko; February 10, 2012, 04:05 PM.

      Comment

      • pitoloko

        • Mar 2011
        • 38

        #4
        Re: Preserve last modified date of old file to the new converted files?

        i've found a solution with NIRCMD

        [COLOR="green"]nircmd.exe setfiletime "File.mp3" "Crationdate timedate" "modificationdate modificationtime"[/COLOR]

        Like this :
        Code:
        nircmd.exe setfiletime "%~1" "10-10-2010 12:12:12" "10-10-2010 12:12:12"
        With this code i replace the old dates for the new dates in the new file

        But for me is better if can help me to do it with the 'Preserve Source Attributes' dsp

        Thankyou
        Last edited by pitoloko; February 10, 2012, 04:53 PM.

        Comment

        Working...

        ]]>