Sunday, September 25, 2011

How to create Auto run file(Codes)

File type auto run
Extension- *.inf



Classic description--  Autorun file is a very small file in text wgich having extension inf  and contains few codes. It is basically in CD's, DVD's Usb drives etc.. to run a predefined file automatically when it first detected by the windows.

The extension of autorun file is *.inf.


Some coding to make a autorun file.

[AutoRun]
open=Autorun.exe
icon=P18D.ico

Setting a Custom Icon********
icon=coffeecup.ico
icon=DCoTopen.exe
icon=iconlib.dll,2


Naming Your USB Drive*******
label=DCoT Drive


Setting AutoPlay Options********
open=setup.exe  //It will open the setup.exe file.
action=Start the execution       //This command is used to give message along with name.

Adding Context Menu Items*********
shell\lost=Help! I'm Lost!
shell\lost\command=Lost.exe

Viewing a File**********
shellexecute=http://www.google.com

No comments:

Post a Comment