G
Guest
I am writing this app in .net 2003 since all machines don't have 2.0
framework. I am trying to delete old profiles, but I am getting access
denied or file in use errors. A lot of these files I am able to delete
in Windows Explorer.
The app is getting launched using the System account, so there is
plenty of rights to delete the files.
I have tried the following:
Recursive delete of every file using Kill()
fso.DeleteFolder(path,True)
Directory.Delete(path)
Set Owner on directories to System and still can't delete. Can't
delete after reboot, even though the user has not logged back in. Most
of the files are index.dat from Cookies or Temp internet folders.
Is there any way to brute force delete these files and folders? I want
them deleted, and don't want to have to shell out to a third party app.
Thanks for any help
framework. I am trying to delete old profiles, but I am getting access
denied or file in use errors. A lot of these files I am able to delete
in Windows Explorer.
The app is getting launched using the System account, so there is
plenty of rights to delete the files.
I have tried the following:
Recursive delete of every file using Kill()
fso.DeleteFolder(path,True)
Directory.Delete(path)
Set Owner on directories to System and still can't delete. Can't
delete after reboot, even though the user has not logged back in. Most
of the files are index.dat from Cookies or Temp internet folders.
Is there any way to brute force delete these files and folders? I want
them deleted, and don't want to have to shell out to a third party app.
Thanks for any help