Convert a file name to a media id, for example
e345218c_50d11e02_07ec_0111_50D11F4C.dat'
Drop the "_50D11F4C.dat" so that you are left with this:
e345218c_50d11e02_07ec_0111
convets the _ characters to : characters
e345218c:50d11e02:07ec:0111
You can now use this to obtain information about the media as it exists in the IDB, for example
omnimm -list_media e345218c:50d11e02:07ec:0111 -detail
If this returns valid information, you can find out information about it
omnimm -media_info e345218c:50d11e02:07ec:0111 -detail
export it
omnimm -export e345218c:50d11e02:07ec:0111
If it has valid information you need to keep, then you can IMport it. If not, just export it
If the 'omnimm' command returns something like 'No Media Found', just delete the file