Create file [autorun]! UPDATED!
When we want a CD, DVD or a file is run at the same time when we introduce them to a PC, we need to create an autorun file.
To create these, do not need any application or program, simply with the text editor windows.
Open a blank text document and put:
[AUTORUN] OPEN =
ICON exe file name = name of icono.ico
in OPEN, put the full name of the executable file you want to start automatically or if we do not have executable, indicate the name we put the CD recorded it.
In ICON, indicate the name of the icon. The icon must be saved in the same folder where we create the autorun.
For example, this is for a USB autorun:
[AUTORUN] OPEN = Disco.exe
ICON = x.ico
Once written, select "save as" and must write autorun.inf
look to be change the file extension. "txt" to. "INF"
should see an icon like this:
When you create an autorun on a USB, it has a peculiar value, usually by connecting the pendrive to the computer it should appear in my pc, the icon you have selected.
If the icon disappears, it means that the stick has been infected by a virus since the first affected are the autorun files.
is advisable to hide the autorun icon and the icon, for this select 'tools' in the top bar, folder options, "see" and select "Do not show hidden files and folders."
To hide files by pressing the right button, select properties and "hidden."
Sometimes we need to open a document, photo or even a web pagne, which means that it is an executable, this does not work for the OPEN, if we put shellexecute = nombre.extensión
eg shellexecute = document. txt
There's more ... and the autorun works when you click the icon for the CD, pendrive etc. But what if we run straight to insert the CD or USB?
Well, in the autoun paste this: UseAutoPlay = 1
Now the program or the file indicated in the autorun is executed at the time that you connect to PC.
To run a program directly on the flash drive or CD we can also use the command ShellExecute = file.exe for example, this autorun, open the workbench to introduce himself to the USB flash drive, and places an icon Pen.
[AUTORUN]
UseAutoPlay = 0
shellexecute = EWB512.exe
ICON = x.ico
You have to keep in mind that when making an autorun on a USB, it only works for windows indicated action and to see other files the pen must do so through "explore" with the right button.
0 comments:
Post a Comment