<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1595" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Thanks for the basename suggestion.  That almost works.  I'm running into a problem with some of the directory names when they include \800x\   see below.</DIV>
<DIV>—-----------------------------------------------------------------------------</DIV>
<DIV>import sys, os, string</DIV>
<DIV><BR>teststring = 'C:\shoreline\dvd\prep area\800x\060623_00001.jpg'<BR>print  os.path.basename(teststring)</DIV>
<DIV>—-----------------------------------------------------------------------------</DIV>
<DIV>Results in </DIV>
<DIV>800x0623_00001.jpg</DIV>
<DIV> </DIV>
<DIV>But it needs to be</DIV>
<DIV>060623_00001.jpg</DIV>
<DIV><BR> </DIV>
<DIV> </DIV>
<DIV> </DIV></BODY></HTML>