rootx Posted May 20, 2015 Posted May 20, 2015 (edited) $files = _FileListToArrayRec("G:\03_MUSIC\","*.mp3", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT,$FLTAR_FULLPATH) $fileArray = UBound($files)-1 For $x = 1 to $fileArray $var = FileGetTime($files[$x],0,0) $date = $var[2]& "/" & $var[1] & "/" & $var[0]&' '&$var[3]& ":" & $var[4] & ":" & $var[5] ;ConsoleWrite($files[$x]&" "&$date&@LF) ;ConsoleWrite("??? Path "&StringRegExp($files[$x],".*\\(.+)$",1)&@lf) ConsoleWrite("??? Path "&StringRegExp($files[$x],".*\\(.+)$",3)&@lf) next I would remove the path, the regular expression works on a string , but not in the loop , where I went wrong...THX. Edited May 20, 2015 by rootx
Malkey Posted May 20, 2015 Posted May 20, 2015 .... ConsoleWrite("??? Path "&StringRegExp($files[$x],".*\\(.+)$",3)&@lf) ....StringRegExp($files[$x],".*\\(.+)$",3)returns an arrayTryConsoleWrite("??? Path "&StringRegExp($files[$x],".*\\(.+)$",3)[0] & @lf) rootx 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now