Re: File_Delete Question [message #39705] |
Fri, 04 June 2004 14:22 |
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  |
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
|
|
|