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

Home » Public Forums » archive » Re: File_Delete Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: File_Delete Question [message #39707 is a reply to message #39705] Fri, 04 June 2004 13:32 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
"David Fanning" <davidf@dfanning.com> wrote in message news:MPG.1b2a80bc9c082c0598977d@news.frii.com...
> 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/


Doing what you describe works fine (no chmod required) here (win2000, idl 6.0).
Care to post a code snippet?

-bob
[Message index]
 
Read Message
Read Message
Previous Topic: File_Delete Question
Next Topic: Moving, Copying, Renaming Files using IDL

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

Current Time: Fri Oct 10 11:00:02 PDT 2025

Total time taken to generate the page: 2.55915 seconds