How to Disable Scan Disk at Start Up

chkdsk is a command that checks the disk surface for physical errors. To disable to chkdsk, you must run the Registry Editor (regedt32.exe)

In the Run tab type: regedit

  • Under the HKEY_LOCAL_MACHINE subtree, expand to:
    • \SYSTEM\CurrentControlSet\Control\Session Manager
  • Double click on the “BootExecute” mutli-string value and in the opened window the default value “autocheck autochk *” is set. “*” – means that every drive is checked consistency. Just add “/K:C” at the end before “*”. So, the final value looks : autocheck autochk /K:C *. Save changes.
  • Finally exit the registry and restart your computer to save the changes

fTalk Is A Facebook Chat Client For Desktop

In the Latest Facebook interface change, they have changed the facebook chat section also, The new Facebook chat layout makes it quite hard to identify online and offline contacts. So we can use this simple application to simplify our day to day work in the facebook.

To begin, launch fTalk and login with your Facebook account details. You will be redirected to the authorization page via your default browser. fTalk has a minimalist interface and is fast, faster than other desktop clients we have seen.

Link : Download  |  Images from : http://www.ftalk.com/

Monitor File Deletion In Realtime With Deletion Extension Monitor

This free app keeps a log of all files that have been deleted. The monitoring can be filtered by file extension. The software logs the date/time, the process filename which is responsible for deleting the file and the filename of the deleted file with its file size. By default, it only monitors extensions of exe, dll or pdf but you can add additional extensions under menu of monitoring > file extensions.

Deletion Extension Monitor works on 32-bit Windows.

Link : Download

Types of Errors in Visual Studio.NET

There are three basic types of errors: syntax errors, semantic errors, and logic errors.

  •  Every program statement in Visual Basic .NET is comprised of expressions. These expressions are built up from operators and operands. If we use wrong expression then we can see syntax error.
  • Statements that obey the syntax rules, but are taken out of context, are called semantic errors.
  • a logic error is simply the manifestation of a difference between what you thought would happen as the program ran and what actually did happen.

Structured Error Processing

Structured exception handling tries to isolate the code that handles the errors from the main program flow. Further, structured exception handling attempts to do this in an organized fashion, using the following syntax structure:

Try… Catch… Finally Statement

Try
	TryStatementBlock
Catch [parameter]
	CatchStatementBlock
[Finally]
	FinallyStatementBlock
End Try
  • The Try statement block contains the code that you think could cause an exception to be generated.
  • the Catch statement block is a generic exception handler that catches all errors that might occur in the Try block.
  • The Finally statement block isn’t required in structured exception handling. The Finally statement block is used to hold code that is always executed, even if no exception is thrown by the Try block
  • The End Try statement simply marks the end of an exception-handling statement block

Example :

Try
btnError.Text = lbStates.SelectedItem.ToString
Catch oEX As System.NullReferenceException
    Call MsgBox("Please select an item first")
Catch oEX As Exception
    Call MsgBox("Some other error: " & oEX.Message)
End Try

Do Loop Until in Visual Studio.NET

Note that the Loop Until evaluates the test expression at the bottom of the loop. Therefore, Loop Until always executes the loop’s statement block at least once. Just like the Until loop, Loop Until continues to execute the loop’s statement block until Expression becomes logic True.

Do 
DoWhileStatementBlock 
Loop Until <Expression>

Example :

Do
lstDisplay.Items.Add(x)
x = x + 1
Loop Until x > 5

Sample : Download