File_Delete Question [message #39709] |
Fri, 04 June 2004 12:51 |
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/
|
|
|