Click to See Complete Forum and Search --> : Deletion of file from folder permanantly


sureshm
August 29th, 2001, 12:51 AM
hi,

I want to delete a file from a folder using an api, i already used an api called delete file which is deleting the file , but sometimes it is not actually deleting the file(means if i use dir function it is finding the file), i can see the same file after calling the above api in windows explorer, but if i refresh the windows explorer it is removing from the explorer,
I want to remove the file from the specified folder permenantly programmatically, can u pl.find out the way to delete it or refreshing the windows explorer contents programmatically.

thanx

Cakkie
August 29th, 2001, 01:43 AM
Ever though of the Kill statement. This deletes the file, and if you do dir, the file is gone.

Tom Cannaerts
slisse@planetinternet.be

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook

Cimperiali
August 29th, 2001, 02:04 AM
>i can see the same file after calling the above api in windows explorer, but if i refresh the windows explorer it is removing from the explorer
this means file is gone, it is only a matter of refreshing explorer...

Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.

The Rater