How to make a Autorun.inf file
When cd or pen drives are inserted, windows will search for the autorun.inf file and follow the instructions of autorun.inf file(instructions have written inside the autorun.inf file).
How to create Autorun file?
Open notepad
type this command:
type this command:
[Autorun]
save the file as "autorun.inf" (select all files, not text )Complete Syntax and instructions inside the Autorun file:
Basic syntax must be inside the autorun.inf file is :
[Autorun]
This will be used to identify the the file as autorun.OPEN=
This will specify which application should be opened when the cd or pen drive is opened
Example:
open=virus.exe
This will launch the virus.exe file when cd or pen drive is opened. The file should be in root directory.if the file is in any other sub directories ,then we have to specify it.
Open=RECYCLER\Virus.exe
Explore=Nothing big difference. if you right click and select explore option in cd or pen drive. This command will be run.
AutoPlay=
Same as the above , but it will launch the the program when auto played.
SHELL\VERB =
The SHELL\VERB command adds a custom command to the drive's shortcut menu. This custom command can for example be used to launch an application on the CD/DVD.
Use a series of shell commands to specify one or more entries in the pop-up menu that appears when the user right-clicks on the CD icon. (The shell entries supplement the open command.)
Icon=
Change the icon of your pen drive or cd. you can use .ico,.bmp images(also .exe,.dll)
Customizing the icon menu
To edit the menu that appears when you right-click on the icon, simply add the following syntax:shell=start shell\start\command=path/myapplication.exe
shell\start=Run Application
shell\read\command=notepad++.exe files/readme.txt
shell\read=open readme.txt .
No comments:
Post a Comment