Chkdsk With Log Using .net?
May 24, 2012
I only able to call the chkdsk command to dun but no idea how to log the chkdsk results.
Imports System.Diagnostics
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("chkdsk.exe", "C:").WaitForExit()
End Sub
End Class
View 3 Replies
Sep 11, 2009
I'm using the ChkDsk method of the Win32_LogicalDisk Class of WMI.I've read up on the documentation from MSDN. I'm not 100% sure how ChkDsk works, but I want to be able to run it while the PC is running, but I'm not sure that's possible.When I try and run it, I get a Return Code of 1. Which is: Success - Locked and Chkdsk Scheduled on Reboot.Is there some type of parameter I'm missing, or can ChkDsk not run when the PC is running?
View 6 Replies