comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » File_Delete Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
File_Delete Question [message #39709] Fri, 04 June 2004 12:51
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Any Windows gurus out there? Peter?

I have an IDL program that creates a file in one
part of the program. Later, another part of the
program reads the file and deletes it. However,
I find that FILE_DELETE by itself doesn't delete
the file. Instead, it gives a really unhelpful
message that it "had a problem deleting the file".
Really!?

To actually delete the file, I have to use FILE_CHMOD
first, with the A_WRITE keyword set (!?). *Then* I can
use FILE_DELETE and get it to work.

Any ideas why this might be the case? I'm running the
program as the Administrator.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FILE_SEARCH() issue.
Next Topic: Re: File_Delete Question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:56:24 PDT 2025

Total time taken to generate the page: 0.00457 seconds