#include<cstdlib>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int ch;
while(1)
{
system("cls");
cout<<"\nSelect an Option"<<endl<<"1.Disble pen Drive \n2.Enable pen Drive \n3.Exit"<<endl<<":";
cin>>ch;
if(ch==1)
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
else if(ch==2)
system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 3 \/f");
else if(ch==3)
break;
else
cout<<"Wrong choice\n\n" ;
cout<<"Press any key to continoue............";
getchar();
getchar();
}
return 0;
}