illustrate
Products            Buy            Support Forum            Registrations            Professional            About           
 

ConvertToFolder does not work

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

    #1

    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 Supporter
    • 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.
    [B][url=http://www.webado.net/][COLOR=Blue][FONT=Comic Sans MS]Christina[/FONT][/COLOR][/url][/B]

    [URL=http://forum.dbpoweramp.com/forumdisplay.php?f=11]dMC FAQ[/URL]
    [url=http://forum.dbpoweramp.com/showthread.php?t=2275]Mpeg Layer III wav codec[/url]
    [url=http://forum.dbpoweramp.com/showthread.php?t=6828]Total uninstall[/url]
    [COLOR=red]Please don't PM me for support, post your questions in the forum for everybody's benefit.[/COLOR]
    [COLOR=RoyalBlue]SVP, ne pas me demander du support par PM. Veuillez poster vos questions dans le forum pour le bénéfice de tous.[/COLOR]

    Comment

    • Spoon
      Administrator
      • Apr 2002
      • 45566

      #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...