title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Convert files preserving creation date and time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ykeyke
    • Oct 2012
    • 7

    Convert files preserving creation date and time

    Sorry, for double posting this, I wasn't sure where to put it:blush:

    Hi, I'm new here, and so hope this thread to be...

    Well, my issue is that I'm converting files, but I need the new files to have the creation attributes of the original files, but the modification dates and times set to the moment of conversion. I know there is in the DSP effects the option of preserving the source attributes, however this one preserve ALL attributes, included those of read-only, hidden, and so. Is there a way to preserve only one of the attributes, in my case those of creation only ???

    Thanks in advance
  • Spoon
    Administrator
    • Apr 2002
    • 43915

    #2
    Re: Convert files preserving creation date and time

    you might be able to use the Run External DSP effect, after preserve to do an

    attrib -h -s

    on the file.
    Spoon
    www.dbpoweramp.com

    Comment

    • ykeyke
      • Oct 2012
      • 7

      #3
      Re: Convert files preserving creation date and time

      Hi Spoon, thank you for the quick reply.

      May be I'm doing something wrong, but that didn't work, the converted files still have ALL the attributes of the source, creation and modification included, as if the attrib -h -s has no effect !! As DSP effects, I apply Preserve Source Attributes, after Run External with the parameters: Run (After Conversion), Program (Nothing) and Commend Line (attrib -h -s). Is That OK ??? I need the modification attributes set to the moment of the conversion of a BUNCH OF FILES...

      I was searching, and it seems that attrib -h -s, remove the hidden and system attributes from a file !!
      Last edited by ykeyke; 10-25-2012, 03:50 PM.

      Comment

      • Spoon
        Administrator
        • Apr 2002
        • 43915

        #4
        Re: Convert files preserving creation date and time

        you would need to add the filename there:

        attrib -h -s -r "[outfile]"
        Spoon
        www.dbpoweramp.com

        Comment

        • ykeyke
          • Oct 2012
          • 7

          #5
          Re: Convert files preserving creation date and time

          Originally posted by Spoon
          you would need to add the filename there:

          attrib -h -s -r "[outfile]"
          OK, but I'm converting a bunch of files located in different directories, how I do that ???

          Anyway, this didn't seems to set the modification attributes to those of the moment of conversion. The -h -s -r refers to hidden read-only and system files, no reference to modification attributes.

          I'm sorry not to be versed in programming languages, for this I need your help.

          Thank you
          Last edited by ykeyke; 10-25-2012, 04:49 PM.

          Comment

          • Spoon
            Administrator
            • Apr 2002
            • 43915

            #6
            Re: Convert files preserving creation date and time

            you would use the preserve effect, this attrib command removes the attributes you do not want. You do not change [outfile], dBpoweramp automatically changes for each file that is converted.
            Spoon
            www.dbpoweramp.com

            Comment

            • ykeyke
              • Oct 2012
              • 7

              #7
              Re: Convert files preserving creation date and time

              Yes, alright, but the modification date and time in the converted files still the same as the sources, which isn't my wish, I want those to be the dates and times of conversion, in other words: updated, but only those two data, nothing else

              Comment

              • Spoon
                Administrator
                • Apr 2002
                • 43915

                #8
                Re: Convert files preserving creation date and time

                I do not think we can do this.
                Spoon
                www.dbpoweramp.com

                Comment

                • ykeyke
                  • Oct 2012
                  • 7

                  #9
                  Re: Convert files preserving creation date and time

                  OK, thank you for your interest in help me, however, if you have any idea, that can solve my issue, feel free to let me know, I'll appreciate it.

                  Greetings

                  N.B: Maybe in future editions, the preserve source attributes might allow to choose which ones to maintain, my suggestion for next updates.

                  Thanks

                  Comment

                  Working...

                  ]]>