I've seen threads on this topic but it didnt shed any light on my case so here it goes
I am trying to rename a file as such;
Dim loc_path = "D:\Test"
Dim filenames() As String = Directory.GetFiles(loc_path, "*.mp3")
For i = 0 To ListBox1.Items.Count - 1
filepath = Path.Combine(loc_path, ListBox1.Items(i).ToString)
filename = Path.GetFileName(filenames(i))
Dim idtag As New id3v1Tagger.Tagger(filepath)
temp = idtag.Title.ToString
idtag.Title.Replace(idtag.Title, filename)
idtag.WriteID3v11()
fname = temp
My.Computer.FileSystem.RenameFile(filepath, fname)
Next
The part " My.Computer.FileSystem.RenameFile(filepath, fname) " throws an 'Argument was unhanded; Illegal Characters in path' error
But when i checked the filepath using break points theres no problems in the string
and i thought u guys may need the data in listbox
5prodigy1().mp3
5prodigy10().mp3
5prodigy11().mp3
5prodigy12().mp3
5prodigy13().mp3
5prodigy14().mp3
5prodigy2().mp3
5prodigy3().mp3
5prodigy4().mp3
5prodigy5().mp3
5prodigy6().mp3
5prodigy7().mp3
5prodigy8().mp3
5prodigy9().mp3