Disk Analyzer Tool

VoiDeD

Famous
Joined
Nov 17, 2007
Messages
540
! Another update available. !
Filter settings now save, and you can refresh your drive list.
You can get it here: http://pcbin.net/voided/Stuff/Disk_Analyzer_4.zip
Please tell me of any problems. :)

Hey guys, I recently made a program that helped me out and I figured some of you guys might benefit from it.

Basically, I'm always paranoid that my harddrive space is going to waste by some huge files that I just can't seem to find. x)
So I decided I'd make a program that would scan my drive and list out every file that is taking up space.

I've got some screenshots of it as well:
DiskAnalyzer4.png

DiskAnalyzer5.png


The program is still a work in progress, and if you guys have any suggestions on what I can add, I'll try my best to make it so.

Once I finish this I'll be happy to release it so you guys can make use of it. :P
 
Looks like a pretty cool program, nice job making it! :D

P.S. X3: Reunion.. nice! :)
 
Well I think I've finished it so that it's in working order.
If there's any problems or you have a suggestion, please tell me. :)

Another update, latest version here: http://pcbin.net/voided/Stuff/Disk_Analyzer_4.zip

Also, thanks for all the replies and the positive criticism. :)

Edit:
Also I might want to add that if the program seems to have froze while it's analyzing, it hasn't. Depending on the size of your drive it can go slow or fast. :o
 
Definitely checking it out. One thing... you might want to catch the exception for folders where permission is denied. Ran into that one real quick.

Oh, and it's trying to traverse legacy directory trees (on Vista). "Documents and Settings" doesn't exist. Not sure how you'd go about avoiding those, as I know they're returned to legacy apps by the API, even though they don't exist on the drive. (It's throwing another exception on this.)
 
[quote1200966269=Signe]
Definitely checking it out. One thing... you might want to catch the exception for folders where permission is denied. Ran into that one real quick.
[/quote1200966269]

I'll get right on that.

[quote1200966269=Signe]
Oh, and it's trying to traverse legacy directory trees (on Vista). "Documents and Settings" doesn't exist. Not sure how you'd go about avoiding those, as I know they're returned to legacy apps by the API, even though they don't exist on the drive. (It's throwing another exception on this.)
[/quote1200966269]
That's interesting, I didn't know this actually, and I'm not sure how I'd be able to avoid it since the program runs through all folders and files regardless of name and the like.

If you could give me more information on the type of exception thrown I'd be able to come up with a fix for it.

Also I noticed that the program is targeting .NET 3.5, when it should be .NET 2... I'll change this and re-upload.
 
ah yes i forgot i just reinstalled windows and didn't dl .net. Yea, it works fine now thanks.
 
[quote1200970829=VoiDeD]
That's interesting, I didn't know this actually, and I'm not sure how I'd be able to avoid it since the program runs through all folders and files regardless of name and the like.

If you could give me more information on the type of exception thrown I'd be able to come up with a fix for it.

Also I noticed that the program is targeting .NET 3.5, when it should be .NET 2... I'll change this and re-upload.
[/quote1200970829]

From the exception, it looks like another permission error, so your first fix may solve this one, too. In reality, the directory just doesn't exist. The API returns it so that old apps can still find their data, but the real dir is \Users, now.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Documents and Settings' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
at System.IO.DirectoryInfo.GetDirectories(String searchPattern, SearchOption searchOption)
at Disk_Analyzer.MainForm.Analyze()
at Disk_Analyzer.MainForm.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Disk Analyzer
Assembly Version: 0.1.2942.34893
Win32 Version: 0.1.2942.34893
CodeBase: file:///C:/Users/Signe/Desktop/Disk%20Analyzer.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
Back
Top