> cDestinationHName= cHTML+"\"+ ; > ALLTRIM(JUSTSTEM(laFileListWS [ifw,1]))+"\"+ ; > ALLTRIM(JUSTSTEM(laFileListWS [ifw,1]))+" "+.ActiveWorkBook.ActiveSheet.Name+".html" > IF !DIRECTORY(cHTML+"\"+ALLTRIM(JUSTSTEM(laFileListWS [ifw,1]))) > MKDIR cHTML+"\"+ALLTRIM(JUSTSTEM(laFileListWS [ifw,1])) > ENDIF >SET STEP ON > > IF FILE(cDestinationHName) > DELETE FILE &cDestinationHName > ENDIF >>While in debug - file not found with
>fname="test_12_12_2005_1 total test summary.pdf" >fdir="\\koshfp01\KohlerChart\HTML\" >DELETE FILE fdir+fname >>If you issue FILE(fdir+fname) FILE IS THERE!