Quantcast
Channel: Forensic Focus Forums - Recent Topics
Viewing all articles
Browse latest Browse all 20112

Forensic Software: [Tool] Index ($I30) and FileSlack cleanup tool v1.0.0.0

$
0
0
francesco Nice tool. I developed something similar internally to do the same thing... but without your fancy GUI! One recommendation is to check out the Delimon.Win32.IO.dll library as a replacement for System.IO, I was getting a lot of exceptions with long file names/paths. I also was finding that a lot of the files were set to read-only and couldn't be deleted. Code for my fix is below if you are interested. Delimon.Win32.IO.FileAttributes attributes = Delimon.Win32.IO.File.GetAttributes(file); if ((attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly) { // Make the file RW attributes = RemoveAttribute(attributes, FileAttributes.ReadOnly); File.SetAttributes(file, attributes); Console.WriteLine("The {0} file is no longer RO.", file); } private static FileAttributes RemoveAttribute(FileAttributes attributes, FileAttributes attributesToRemove) { return attributes & ~attributesToRemove; }

Viewing all articles
Browse latest Browse all 20112

Trending Articles