CD AutoRun basics光盤AutoRun基本

CD AutoRun basics光盤AutoRun基本
AutoRun runs a program when a CD is inserted into a Windows computer - see below for advice on Apple Macs.自動運行一個程序時,裁談會是插入到Windows電腦上-見下文的意見,蘋果互委會。

If Windows finds a (plain text) file called AUTORUN.INF in the root directory of a CD then it follows the instructions in this file to run a program.如果Windows發現(純文字)所謂的Autorun.inf文件在根目錄的CD ,然後它遵循指示,在此文件中運行程序。 This example AUTORUN.INF file tells Windows to run program setup.exe (from the root directory of the CD):這個例子告訴Autorun.inf文件運行Windows程序的Setup.exe (從根目錄的CD ) :

[autorun] [自動]
open=setup.exe開放的Setup.exe =
icon=snazzie.ico圖標= snazzie.ico

Use the Windows Notepad application to edit plain text files (it is in the Start All Programs Accessories menu).使用Windows記事本的應用編輯純文本文件(這是在開始所有程序附件菜單) 。

Your CD users may have switched off AutoRun.您的CD用戶可有關掉自動運行。 This might be because they are concerned about viruses.這可能是因為他們關心的病毒。 Also, if they press the Shift key down while inserting the CD, AutoRun is disabled.此外,如果他們按下Shift鍵,同時插入的CD , Autorun的殘疾人士。 In Windows NT4, 2000 and XP systems, only Administrators and Power Users can use AutoRun.在Windows NT4 , 2000年和XP系統,只有系統管理員和電力用戶可以使用自動運行。

There is no way to force your users to use AutoRun.有沒有辦法強迫用戶使用自動運行。 It is therefore good practice to provide instructions so that users know how to start your CD, eg tell them to open file index.htm in their browser.因此,這是好的做法,以提供指示,讓使用者知道如何開始您的CD ,例如告訴他們,打開文件index.htm在他們的瀏覽器。 These instructions are also required if your CD might be viewed by non-Windows users.這些指示還要求如果您的CD可能被非Windows用戶。

So why is ShellRun needed?那麼,為何是shellrun需要?

Until recently, it was not possible for Windows to AutoRun a file rather than a program.直到最近,人們不可能將Windows的自動運行文件,而不是一個計劃。
OK, that’s not strictly true: you could use the following AUTORUN.INF to show web page index.htm確定,這不是嚴格的真實:您可以使用下列的Autorun.inf顯示網頁index.htm

[autorun] [自動]
open=start index.htm開放=開始index.htm

However, if you do this, Windows displays a DOS box briefly, which looks nasty.不過,如果你這樣做, Windows會顯示DOS的方塊簡單來說,顯得污穢。 (And start might not be available on some systems.) (開始可能無法提供在某些系統上) 。

If you are only targeting recent Windows systems, then you can use the shellexecute command to open a file without a flickering DOS box:如果你是只針對最新的Windows系統,那麼您可以使用shellexecute命令來打開一個文件沒有一個閃爍之框:

[autorun] [自動]
shellexecute=index.htm shellexecute = index.htm

What does ShellRun do then?什麼shellrun怎樣做呢?

ShellRun overcomes the above problems. shellrun克服了上述問題。 It shows your file and displays a neat popup window.它表明您的文件並顯示一個乾淨彈出式窗口。 The popup appears straight away so that the user knows that something is happening.彈出似乎直遠離,讓使用者知道,一些正在發生的事情。 ShellRun works in all Windows systems. shellrun工程,在所有的Windows系統。

This example AUTORUN.INF tells ShellRun to show web page index.htm while displaying message “Starting CD now…” in the ShellRun popup window.這個例子的Autorun.inf告訴shellrun顯示網頁index.htm ,而顯示的訊息“開始,裁談會現在… … ” ,在shellrun彈出式窗口。

[autorun] [自動]
open=ShellRun.exe index.htm Starting CD now…開放= shellrun.exe index.htm開始,裁談會現在…

Do not forget to put ShellRun.exe in the root directory of your CD along with AUTORUN.INF.不要忘記把shellrun.exe在根目錄下您的CD隨的Autorun.inf 。

Viewer Technicalities觀眾的技術性問題

All the above AutoRun examples, including ShellRun, use the same core technique to display a file.上述所有Autorun的例子,包括shellrun ,使用相同的核心技術,以顯示文件。

Windows associates a viewer program with each file type.在Windows同夥檢視程序與每個類型的文件。 For .HTM and .HTML web pages, the viewer program will be your default browser.為與。 htm和。 HTML網頁,查看計劃將成為您的默認瀏覽器。

If a user does not have a viewer for your file type then it cannot be displayed until a viewer is installed.如果用戶沒有一個觀眾,為您的文件類型,然後它無法顯示,直到Viewer是安裝。 For example, if you are trying to show a PDF file, the user must have Adobe™ Acrobat Reader or equivalent installed.例如,如果您正試圖查看PDF文件,用戶必須有Adobe ™ Acrobat Reader或相等於安裝。

If a viewer is not available, the freeware version of ShellRun just displays a message.如果觀眾是不具備, Freeware版本的shellrun只是顯示一個訊息。 In retail version you can prompt the user to run a viewer installation program.在零售版,您可以提示用戶來說,觀眾的安裝程序。 See the Viewers page for more details.看到觀眾的網頁,了解更多詳情。

If you have a viewer program available then put its installation program on your CD - if you are allowed to distribute it.如果您有一個觀眾程序可用,然後付諸表決,其安裝程序對您的CD -如果您允許分發。 To distribute Adobe™ Acrobat Reader, see here: Adobe Acrobat Reader - Download Adobe Acrobat Reader for distribution.分發™的Adobe Acrobat Reader軟件閱覽,在這裡看到:使用Adobe Acrobat Reader -下載A dobeA crobatR eader以供分發。

Enabling AutoRun on your computer使自動在您的計算機上

To test AutoRun you need to have it enabled on your computer.測試自動執行,您需要擁有它您的計算機上啟用。 A registry setting can be used to disable AutoRun.註冊表設置,可以用來禁用自動運行。 Click Start Run then type in regedit.單擊開始運行,然後鍵入在regedit 。 Select Edit Find and type in NoDriveTypeAutoRun.選擇編輯查找和類型在nodrivetypeautorun 。 This value should be found in this key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer .這個值應該發現,在這項: HKEY_CURRENT_USER \軟件\微軟\的Windows \ currentversion \政策\總管。

The NoDriveTypeAutoRun value should be hexadecimal 95 if AutoRun is enabled on all CDs, or B5 if disabled for CDs.該nodrivetypeautorun值應該是十六進制95 ,如果啟用了自動對所有的CD ,或B5的,如果殘疾人士的CD 。 (If you want to test AutoRun on a floppy disk, set this value to 91.) You may need to change more than one instance of NoDriveTypeAutoRun in the registry. (如果您想要測試自動對軟盤,將此值設置為91 。 )您可能需要變更的多個實例nodrivetypeautorun在註冊表中。 You usually need to reboot for a new value to take effect.你通常需要重新啟動一個新的價值,才能生效。

In Windows 95/98/Me the NoDriveTypeAutoRun value is displayed as 95 00 00 00.在Windows 95/98/Me的該nodrivetypeautorun值是顯示95 00 00 00 。 In Windows NT4, 2000 and XP this value is displayed as 0×00000095 or hexadecimal 95.在Windows NT4 , 2000年和XP的這個值是顯示為0 × 00000095或十六進制95 。 If you modify the NoDriveTypeAutoRun value make sure it is still in the correct format.如果您修改nodrivetypeautorun價值,確保它仍然是在以正確的格式。

Filed under提起下 Uncategorized未歸類

One Response to “CD AutoRun basics” 1回應“光盤AutoRun基本”

  1. Darlene Says: darlene說:

    olá! olá !
    uso um sistema operacional livre e quero, utilizando este sistema, criar um cd autorun com arquivos em html.本網站的使用這個系統行動和livre e quero , utilizando埃斯特系統, criar這個光盤AutoRun的COM arquivos在HTML中。 alguém saberia me informar como faço ou q programa uso? alguém saberia我informar科摩faço歐q節目使用條款?
    aguardo resposta. aguardo resposta 。
    abraços

Leave a Reply離開的答复



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment . 請輸入代碼如下所示(以驗證您是否人類) ,然後單擊提交評論


Protected by保護 Comment Guard Pro評論民警衛隊親