Hi all.
I'm trying to write vbs script to convert files to ogg. it works on single file, but i cannot figure out how to convert full directory. Or what i really want: to convert full directory structure with all sub-directorys.
What i want to achieve? I have tons of loops that i want to convert to ogg (many thousands of files), so what i want is to select root-dir of loop dir-structure, and just convert all to ogg in one step, replacing all original files.
now my script looks like this:
=====================================
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
' Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
dMC.VolumeNormalize = False
dMC.PreserveTags = True
dMC.DeleteSourceFiles = False
' Set Output Folder (to C:\Conversion123 )
dMC.ConvertToFolder = False
' dMC.ToFolder = "C:\Conversion123"
' Add My Files to Convert
Call dMC.AddFromFile("D:\loops\mm\AMBIENT\120BPM\BASS\b ass_a1.wav")
' Convert To ogg (want option page, Want Overwrite page, Want finished, Want Errors)
Call dMC.GoConversion("Ogg Vorbis", False, False, True, False)
===========================================
please help.
thnx
gnd
I'm trying to write vbs script to convert files to ogg. it works on single file, but i cannot figure out how to convert full directory. Or what i really want: to convert full directory structure with all sub-directorys.
What i want to achieve? I have tons of loops that i want to convert to ogg (many thousands of files), so what i want is to select root-dir of loop dir-structure, and just convert all to ogg in one step, replacing all original files.
now my script looks like this:
=====================================
' Create dMC Object
Set dMC = CreateObject("dMCScripting.Converter")
' Set My options (Volume norm off, ID Tag Preservation On, No delete Source files)
dMC.VolumeNormalize = False
dMC.PreserveTags = True
dMC.DeleteSourceFiles = False
' Set Output Folder (to C:\Conversion123 )
dMC.ConvertToFolder = False
' dMC.ToFolder = "C:\Conversion123"
' Add My Files to Convert
Call dMC.AddFromFile("D:\loops\mm\AMBIENT\120BPM\BASS\b ass_a1.wav")
' Convert To ogg (want option page, Want Overwrite page, Want finished, Want Errors)
Call dMC.GoConversion("Ogg Vorbis", False, False, True, False)
===========================================
please help.
thnx
gnd
Comment