Maybe it doesn't like the THIS reference and that's causing the error? I'd wrap it in a try..catch.
-- rk -----Original Message----- Sent: Tuesday, September 06, 2011 1:17 PM Subject: Re: Erase generates "File does not exist" Error 1 On 09/06/2011 09:59 AM, Tracy Pearson wrote: > I have a user reporting troubles with a common process. > A temporary CDX file is created and used. Once the Index is not in > use, I delete the CDX. > > ERASE (THIS.cIndexFile) > > I'm a bit perplexed how this error is being generated, the VFP 9 help > file > states: > > Remarks > This command does not generate an error if the specified file > does not exist. > The DELETE FILE command is the same as the ERASE command. > > > When I've remoted into the user, I have been able to duplicate the > issue. It is unique to her workstation. > Windows 7 latest patches > Kaspersky has .CDX, .DBF and .FPT files in the "ignore" list. > I just turned off Write Delay, perhaps that will help. > > Does anyone else have a suggestion or thoughts? _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD04419F2A66C33@ACKBWDDQH1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.