title
Products            Buy            Support Forum            Professional            About            Codec Central
 

ConvertToFolder does not work

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

    ConvertToFolder does not work

    Hi everyone,

    Im trying to run this easy piece of script in .vbs which should convert a file called john.mp3 from C:/tracks/ to the same directory.....however, when i run this script the file ends up in the same directory as the .vbs script resides, and also it is names -tracks-john.mp3 which again is not what i wanted....

    strFilename = "john.mp3"
    objDMC.VolumeNormalize = False
    objDMC.PreserveTags = False
    objDMC.DeleteSourceFiles = False
    objDMC.ConvertToFolder = False
    Call objDMC.AddFromFile("C:/tracks/" & strFilename)
    Set Mp3Settings = CreateObject("dMCScripting.Mp3Settings")
    Call Mp3Settings.Set (strBitrateTo, strFrequencyTo, 0, 0)
    Call objDMC.GoConversion("MP3 (Lame)", True, False, False, True)


    Any ideas anyone???

    Thanks

    Al
  • ChristinaS
    dBpoweramp Guru
    • Apr 2004
    • 4097

    #2
    Re: ConvertToFolder does not work

    Going back to old DOS notions.

    One way I can think of is run your script in the directory where you want it to perform the work and drop the reference to the path from it.

    Comment

    • Spoon
      Administrator
      • Apr 2002
      • 43928

      #3
      Re: ConvertToFolder does not work

      >-tracks-john.mp3

      that is the clue, somehow the path is \tracks\john.mp3 and it is being interpreted as the filename.

      How about:

      Call objDMC.AddFromFile("C:\tracks\" & strFilename)
      Spoon
      www.dbpoweramp.com

      Comment

      Working...

      ]]>