
Steps to follow:
1. Download the source files from here:
Download
2. Extract the zip file
It contains the following 2 files.
- block_usb.c (source code)
- unblock_usb.c (source code)
4. Open the Turbo c compiler
5. Open the Two files in turbo c compiler
6. compile it(alt+f9)
7. press f9 for creating exe file(don’t press ctrl+f9 ,it will run the program)
8. Now go to folder C:Tcbin
9. There you can find two exe files namely block_usb.exe ,unblock_usb.exe
10. Now run the block_usb.exe file(just double click the exe file) . insert your pen drive , it is undetectable.
11. Now run the unblock_usb.exe file(just double click the exe file) . Now your pen drive will be detected.
The first blcok_usb program will disable the the USB port.
The unblock_usb program will make it enable
You can send this file to your friend also. Icon of exe file is look like cmd icon. So need to change it.
so Read How to change the icon of exe file.