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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: File_Delete Question [message #39705] Fri, 04 June 2004 14:22
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
R.G. Stockwell writes:

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

Oh, I knew it. :-(

I can't get FILE_DELETE to fail in simple examples, either.
Unfortunately, I'm in the "get the damn thing to run" mode
at the moment, with no time to sort it out properly. Maybe
I'll find some time this weekend.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: File_Delete Question
Next Topic: Moving, Copying, Renaming Files using IDL

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

Current Time: Wed Oct 08 16:52:40 PDT 2025

Total time taken to generate the page: 0.00420 seconds