Please, how to retrieve the first 5 digit of every name in my list?
My list.txt:
Code:
E:\MP3\MP6\wettyu\12832-Wamdue Project.King of my castle(extended armin van buuren version).MP3
D:\MP3\MP6\wettyu\12853-Wasteland Simple Minds.mp3
E:\MP3\MP6\wettyu\12854-Watch That Man 077. David Bowie-1973-Aladdin Sane.mp3
D:\MP3\MP1\12857-Water No Get Enemy 078. Anikulapo Kuti & Africa '70-1975-Expensive Shit.mp3
D:\MP3\MP1\12858-Waterfront ('89 Remix) Simple Minds.mp3
D:\MP3\MP1\09529-remy and sven piano power Underworld.mp3
D:\MP3\MP1\09530-Renascer (Moses) Focus Ennio Morricone e Dulce Pontes Focus.mp3
D:\MP3\MP1\09297-Purple Om Armageddon Dub @@.mp3
E:\MP3\MMU\09298-Purple Rain Prince.mp3
E:\MP4\SRT\DDR\09300-Push - Strange World (2000 Remake).mp3
D:\MP3\MP1\09301-Push - Universal Nation (Live Mix).mp3
D:\MP3\MP1\08721-oscar peterson night train nme.mp3
D:\MP3\MP1\08724-Osman Ismen Kale.mp3
I need to retrieve the first 5 digit of every name
Code:
E:\MP4\SRT\DDR\09300-Push - Strange World (2000 Remake).mp3
= 09300
D:\MP3\MP1\09301-Push - Universal Nation (Live Mix).mp3
= 09301
My best:
Code:
FullFileName = C:\Documents\List.txt
name = List.txt
dir = C:\Documents
ext = txt
name_no_ext = List
drive = C:
Thanks in advance.
Lista