Try this script!
To run it, download and install
AutoHotkey from
www.autohotkey.com. Save the script below as
RemovePath.ahk and doubleclick to run.
Skrommel
;RemovePath.ahk
SetBatchLines,-1
FileSelectFolder,folderpath
StringSplit,folder_,folderpath,\
foldername:=folder_%folder_0%
Loop,%folderpath%\*.*,0,1
{
StringGetPos,pos,A_LoopFileName,%foldername%_
If pos=0
{
StringReplace,filename,A_LoopFileName,%foldername%_,
FileMove, %folderpath%\%A_LoopFileName%,%folderpath%\%filename%
;MsgBox,%filename%`,%A_LoopFileName%`,%foldername%`,%pos%
}
}