Using basename works, but leaves the extra stuff at the end. Which would have to be removed with another line of code I get this--> ppbhat.tga"; Thanks, for the idea though. /\/\ason