RemoveSpywareFiles(RootPath, Player\#SharedObjects",false) String RootPath = Environment.GetFolderPath().ToLower().Replace("documents", "") ![]() ![]() Try //Need to stop incase they have locked the files we want to delete String FullPath = RootPath + Path + "\\" ĭirectoryInfo DInfo = new DirectoryInfo(FullPath) ĭInfo.Attributes = FileAttributes.Normal įoreach (string FileName in Directory.GetFiles(FullPath))įoreach (string DirName in Directory.GetDirectories(FullPath)) Private static void RemoveSpywareFiles(string RootPath, string Path,bool Recursive) You may also need to kill the process Internet Explore and change the directory attributes and don't go thinking this will work for Index.dat files bacause MS keep changing the rules.Ĭlick my name for code that also removes Firefox files and flash shared objects using System
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |