Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete this file
Message
From
12/12/2005 16:54:16
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01077325
Message ID:
01077328
Views:
26
>I have the latest patches loaded ...
>
>Actual code where file is not being deleted
>
>      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!
>
>What's Up?

FILE() can give misleading results (file is in path, in .EXE, etc.). What does ADIR() show for that file?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform