; ----------------------------------------------- #include #include ; ----------------------------------------------- Opt("MustDeclareVars", 1) ; ----------------------------------------------- Global $g_sSourceAudioPath = "F:\Audio\Source_Audio" ;Global $g_SetName = "" ; Disable the above only when any of the following two variables are being deployed for testing purposes. ;Global $g_SetName = "F:\Audio\Type_1\TestMe" ;Global $g_SetName = "F:\Audio\Type_2\A" Global $g_SetNameWave = "" ; ----------------------------------------------- ; Is called by either the following functions: ; _BrowseForFolder() ; _EnterSetName() _MoveSourceAudioData($g_SetName) ; ----------------------------------------------- Func _MoveSourceAudioData($g_SetName) While 1 Select Case StringMid($g_SetName, 10, 6) = "Type_1" FileMove($g_sSourceAudioPath & "\*.*", $g_SetName & "\wav", $FC_OVERWRITE) $g_SetNameWave = $g_SetName & "\wav" ExitLoop Case StringMid($g_SetName, 10, 6) = "Type_2" FileMove($g_sSourceAudioPath & "\*.*", $g_SetName & "\wav", $FC_OVERWRITE) $g_SetNameWave = $g_SetName & "\wav" ExitLoop EndSelect WEnd EndFunc ;==>_MoveSourceAudioData ; -----------------------------------------------