View Full Version : ConvertToFolder does not work

10-05-2004, 09:00 AM
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???



10-05-2004, 09:34 AM
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.

10-05-2004, 03:27 PM

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)