Aqui esta el script a ver si ustedes ven el error:
Código: Seleccionar todo
Global $acabar = 0,$d = 1, $c = 1
#include <File.au3>
Global $ru = FileSelectFolder("a","")
CojerMp3($ru)
Func CojerMp3($DIr)
$DIr = $DIr & "\"
While $acabar = 0
$file = _FileListToArray($DIr,"*.mp3")
If not @error Then
For $a = 1 to $file[0]
IniWrite(@ScriptDir & "\a.ini","MP3",$d,$DIr & $file[$a])
$d = $d +1
Next
$acabar = 1
Else
ExitLoop
EndIf
WEnd
$acabar = 0
While $acabar = 0
Global $files = _FileListToArray($DIr,"*.*",2)
If not @error Then
For $a = 1 to $files[0]
MsgBox(0,"",$files[$a])
CojerMp3($ru & "\" & $files[$a])
Else
Global $filemp3 = _FileListToArray($DIr,"*.mp3")
If not @error Then
For $a = 1 to $file[0]
IniWrite(@ScriptDir & "\a.ini","MP3",$d,$DIr & $file[$a])
$d = $d +1
Next
Else
ExitLoop
EndIf
Next
Exit
EndIf
WEnd
EndFunc
Saludos!!