I've been searching and playing around for a while and I am a bit stuck. What I'm trying to do is relatively simple I think. I have the following:
Code: Select all
FileRead, var, Ozark (S01E01) - Sugarwood.srt
new_var := RegExReplace(var, "\[(.*?)\]")
FileAppend, %new_var%, %A_WorkingDir%\Ozark (S01E01) - Sugarwood.txt
Code: Select all
Loop, Files, *.srt
{
SplitPath, A_LoopFileName,,,,finalname
FileRead, var, "%A_LoopFileName%"
new_var := RegExReplace(var, "\[(.*?)\]")
FileAppend, %new_var%, %A_WorkingDir%\%finalname%.txt
}
Cheers!