Home > Home

What's autorun.inf?

autorun.inf, as indicated by its name, is the process developed and used for N/A to N/A. Some programs won't be installed to the system or won't work without autorun.inf file. autorun.inf是windows下操纵光盘行为的一个文件,需要放在光盘根目录下,部分操作对于硬盘也适用。

autorun.inf是可以被禁止的。方法如下:

点击开始->运行,在文本框中输入regedit或者regedt32。依次展开HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Exploer,其中的NoDriveTypeAutoRun子键限制着Autorun的作用范围,默认为95(16进制)。

把禁用的设备标志相加设置为键值就可以完成设置。其中设备标志如下

1:无法识别的设备(建议禁止,默认禁止)

2:没有根目录的设备(Drive without root directory未知含义,建议禁止,默认不禁止)

4:可移动的设备(U盘,建议禁止,很多病毒利用U盘的Autorun.inf进行传染,默认禁止)

8:固定的设备(硬盘,自己看着办,默认不禁止)

16:网络设备(web驱动器,建议禁止,默认禁止)

32:光盘驱动设备(CDROM,默认不禁止)

64:虚拟存储设备(RAM,建议禁止,默认不禁止)

128:未指定的其他驱动器(保留位,建议禁止,默认禁止)



autorun.inf文件分为三大部分[AutoRun] [AutoRun.Alpha] [DeviceInstall]。

[AutoRun]适用于Windows95以上系统与32位以上CD-ROM,必选。

[AutoRun.alpha]适用于基于RISC的计算机光驱,适用系统为Windows NT 4.0,可选。

[DeviceInstall]适用于Windows XP以上系统,可选。



[AutoRun]部分的命令及其详解:

1、DefaultIcon

含义:

指定应用程序的默认图标。

格式:

DefalutIcon=图标路径名[,序号]

参数:

图标文件名:应用程序的默认图标路径名,格式可以为.ico、.bmp、.exe、.dll。当文件格式为.exe和.dll时,有时需要使用序号来指定图标。

序号:当文件格式为.exe和.dll时,文件可能包括多余一个图标,此时需要使用序号来指定图标,需要注意的是,序号是从0开始的。

备注:

应用程序的默认图标将在windows explorer核心的驱动显示窗口中替代设备的默认图标来显示。

图标路径名的默认目录是设备根目录。



2、Icon

含义:

指定设备显示图标。

格式:

Icon=图标路径名[,序号]

参数:

图标文件名:应用程序的默认图标路径名,格式可以为.ico、.bmp、.exe、.dll。当文件格式为.exe和.dll时,有时需要使用序号来指定图标。

序号:当文件格式为.exe和.dll时,文件可能包括多余一个图标,此时需要使用序号来指定图标,需要注意的是,序号是从0开始的。

备注:

设备显示图标将在windows explorer核心的驱动显示窗口中替代设备的默认图标来显示。

图标路径名的默认目录是设备根目录。

当存在应用程序默认图标(DefaultIcon)时,本命令无效。



3、Label

含义:

指定设备描述

格式:

Label=描述

参数:

描述:任意文字,可以包括空格。

备注:

设备描述将在windows explorer核心的驱动显示窗口中替代设备的默认描述\卷标来显示。

在非windows explorer核心的驱动显示窗口中(例如右击设备选择属性)显示的仍然是设备的卷标。



4、Open

含义:

指定设备启用时运行之命令行。

格式:

Open=命令行

(命令行:程序路径名 [参数])

参数:

命令行:自动运行的命令行,必须是.exe、.com、.bat文件,其他格式文件可以使用start.exe打开或使用ShellExecute命令。

备注:

命令行的起始目录是设备根目录和系统的$Path环境变量。



5、ShellExecute

含义:

指定设备启用时执行文件。(操作系统支持未知)

格式:

ShellExecute=执行文件路径名 [参数]

参数:

执行文件路径名:设备启用时执行文件路径名。可以是任意格式文件。系统会调用设置的程序执行此文件。

参数:参数,根据执行文件作调整

备注:

命令行的起始目录是设备根目录和系统的$Path环境变量。



6、Shell\关键字\Command

含义:

定义设备右键菜单执行命令行。

格式:

Shell\关键字\Command=命令行

(命令行:程序路径名 [参数])

参数:

命令行:自动运行的命令行,必须是.exe、.com、.bat文件,其他格式文件可以使用start.exe打开。

备注:

命令行的起始目录是设备根目录和系统的$Path环境变量。



7、Shell\关键字

含义:

定义设备右键菜单文本。

格式:

Shell\关键字=文本

参数:

关键字:用以标记菜单,可以使用任何字符表示,包括空格。

文本:在右键菜单中显示的文本。可以使用任何字符,不能存在空格。

备注:

在同一Autorun.inf文件中,不同右键菜单关键字不同,相同右键菜单关键字相同。

右键菜单文本中可以使用&设定加速键,&&输出一个&。

Shell\关键字\Command命令Shell\关键字两者缺一不可,顺序无所谓。

当不存在Open、ShellExecute与Shell命令时,设备启用时运行第一个设备右键菜单指定命令。



8、Shell

含义:

定义设备启用时运行之设备右键命令。

格式:

Shell=关键字

参数:

关键字:标记过的菜单关键字

备注:

Shell指定的关键字可以在AutoRun.inf文件的任意部分。

Open\ShellExecute\Shell命令后定义的优先级高。



[AutoRun.alpha]部分的命令简介:

[AutoRun.alpha]部分的命令与[AutoRun]部分的命令相同,只不过在基于RISC的计算机光驱中,[AutoRun.alpha]优先级高于[AutoRun]


[DeviceInstall]部分命令及其详解:

DriverPath

含义:

定义搜索驱动程序目录。

格式:

DriverPath=驱动程序路径

参数:

驱动程序路径:驱动程序所在路径,包括其子路径。

备注:

Windows XP以上支持。

仅CD-ROM支持

当系统监测到一个新的设备时,会提示用户寻找设备的驱动程序。当用户点选此CD-ROM时,当[DeviceInstall]部分存在时,系统会按照DriverPath所标记的路径出寻找驱动程序。未标记的路径系统将忽略查找。当[DeviceInstall]部分不存在时,系统将进行完全查找。

如果不希望系统在此CD-ROM中搜索驱动程序,只加一行[DeviceInstall]不加DriverPath命令即可。

Error loading autorun.inf

Many internet uses have reported that the autorun.inf error appeared when they were installing N/A. Actually, autorun.inf error message will show up due to the autorun.inf removal or corruption.

The following are few common messages associated with the autorun.inf missing error.

“Cannot find the file autorun.inf”
“The file autorun.inf is missing.”
“This application has failed to start because autorun.inf was not found”

Solutions - How to Fix autorun.inf Errors

Download the autorun.inf error Repair Tool.
Click "Save File" and follow the on-screen instructions to install the program.
First, open DLLEscort, click on the "File Repair" to the right of the input file name and click download


After the download is complete, find the corresponding version of the file, click on "Open"


This will open Explorer, then you'll see the file, right-copy


Copy it to the corresponding directory


If the above method does not solve the problem, then click the "PC Scan" option, select "Scan", wait for the scan results...



Click "All Repair" to fix all the problems.

  1. In order to complete this step, you must run the Command Prompt as administrator. In order to do this, all you have to do is follow the steps below.
    NOTE! We ran the Command Prompt using Windows 10. If you are using Windows 8.1, Windows 8, Windows 7, Windows Vista or Windows XP, you can use the same method to run the Command Prompt as administrator.
    1. Open the Start Menu and before clicking anywhere, type "cmd" on your keyboard. This process will enable you to run a search through the Start Menu. We also typed in "cmd" to bring up the Command Prompt.
    2. Right-click the "Command Prompt" search result that comes up and click the Run as administrator" option.
    Running the Command Prompt as administrator
    Step 4:Running the Command Prompt as administrator
  2. Paste the command below into the Command Line that will open up and hit Enter. This command will delete the damaged registry of the autorun.inf file (It will not delete the file we pasted into the System32 folder; it will delete the registry in Regedit. The file we pasted into the System32 folder will not be damaged).
    %windir%\System32\regsvr32.exe /u autorun.inf
    Deleting the damaged registry of the autorun.inf
    Step 5:Deleting the damaged registry of the autorun.inf
  3. If you have a 64 Bit operating system, after running the command above, you must run the command below. This command will clean the autorun.inf file's damaged registry in 64 Bit as well (The cleaning process will be in the registries in the Registry Editor< only. In other words, the dll file you paste into the SysWoW64 folder will stay as it).
    %windir%\SysWoW64\regsvr32.exe /u autorun.inf
    Uninstalling the autorun.inf file's broken registry from the Registry Editor <em>(for 64 Bit)</em>
    Step 6:Uninstalling the autorun.inf file's broken registry from the Registry Editor (for 64 Bit)
  4. We need to make a new registry for the dll file in place of the one we deleted from the Windows Registry Editor. In order to do this process, copy the command below and after pasting it in the Command Line, press Enter.
    %windir%\System32\regsvr32.exe /i autorun.inf
    Creating a new registry for the autorun.inf file in the Windows Registry Editor
    Step 7:Creating a new registry for the autorun.inf file in the Windows Registry Editor
  5. Windows 64 Bit users must run the command below after running the previous command. With this command, we will create a clean and good registry for the autorun.inf file we deleted.
    %windir%\SysWoW64\regsvr32.exe /i autorun.inf
    Creating a clean and good registry for the autorun.inf file <em>(64 Bit için)</em>
    Step 8:Creating a clean and good registry for the autorun.inf file (64 Bit için)
  6. You may see certain error messages when running the commands from the command line. These errors will not prevent the installation of the autorun.inf file. In other words, the installation will finish, but it may give some errors because of certain incompatibilities. After restarting your computer, to see if the installation was successful or not, try running the software that was giving the dll error again. If you continue to get the errors when running the software after the installation, you can try the 2nd Method as an alternative.

Method 2: Copying the autorun.inf File to the Software File Folder

  1. In order to install the dll file, you need to find the file folder for the software that was giving you errors such as "autorun.inf is missing", "autorun.inf not found" or similar error messages. In order to do that, Right-click the software's shortcut and click the Properties item in the right-click menu that appears.
    Opening the software shortcut properties window
    Step 1:Opening the software shortcut properties window
  2. Click on the Open File Location button that is found in the Properties window that opens up and choose the folder where the application is installed.
    Opening the file folder of the software
    Step 2:Opening the file folder of the software
  3. Copy the autorun.inf file into this folder that opens.
    Copying the autorun.inf file into the software's file folder
    Step 3:Copying the autorun.inf file into the software's file folder
  4. This is all there is to the process. Now, try to run the software again. If the problem still is not solved, you can try the 3rd Method.

Method 4: Solving the autorun.inf Error Using the Windows System File Checker

  1. In order to complete this step, you must run the Command Prompt as administrator. In order to do this, all you have to do is follow the steps below.
    NOTE! We ran the Command Prompt using Windows 10. If you are using Windows 8.1, Windows 8, Windows 7, Windows Vista or Windows XP, you can use the same method to run the Command Prompt as administrator.
    1. Open the Start Menu and before clicking anywhere, type "cmd" on your keyboard. This process will enable you to run a search through the Start Menu. We also typed in "cmd" to bring up the Command Prompt.
    2. Right-click the "Command Prompt" search result that comes up and click the Run as administrator" option.
    Running the Command Prompt as administrator
    Step 1:Running the Command Prompt as administrator
  2. Type the command below into the Command Line page that comes up and run it by pressing Enter on your keyboard.
    sfc /scannow
    Getting rid of Windows Dll errors by running the sfc /scannow command
    Step 2:Getting rid of Windows Dll errors by running the sfc /scannow command
  3. The process can take some time depending on your computer and the condition of the errors in the system. Before the process is finished, don't close the command line! When the process is finished, try restarting the software that you are experiencing the errors in after closing the command line.

Fix Tool Download Now