Is there any other way to delete a file other then using a FSO or the Kill method?
I have a computer that connectes to remote machines, and deletes files out of a specified folder if it is older then 5 days. Everything works great, except i receive this error about half of the time:
Runtime error: -2147024832 Description: Method '~' of object '~' failed.
I seem to get it on any number of machines (there is 12 machines that i delete from). I know it is not a hardware issue (bad hard drive, network issues, etc) because i can delete these files manually via windows (also working remotely, connected to the share). I have my program dumping all information when it encounters this error, so i know which directory it was trying to delete. Everything is fine, and i cant figure out what is causing this error.
Any ideas on this, or another way to delete files?
I have found information about it being a problem with windows, but only on windows 2000 or less (fixed after win2k SP1). All of the PCs have the latest SP on them (all running windows 2000 SP4). So i dont think that is the issue.
Explained in http://www-tcsn.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20736947.html