Add the "Close" function menu for the light-drive right key menu

zhaozj2021-02-12  142

In Microsoft's system, the pop-up menu of the optical drive has only the "pop-up" command, no "off" command. This makes us "lazy" people are unhappy, let's work with me to solve this problem.

first step:

Open the notepad, paste the following code, don't understand, don't matter, this is just a script, no.

Set obj = creteObject ("wmplayer.ocx.7") set cd = obj.cdromcollectionif cd.count> = 1 Then for i = 0 to cd.count-1 cd.item (i) .Eject next for i = 0 to Cd.count-1 cd.Item (i). Eject Nextendiff

Then save this file to c: /closecdrom.vbe

Step 2:

Open the registry, find the key: hkey_local_machine / software / classes / drive / shell

Create a sub-key CLOSECDROM below: hkey_local_machine / soft / classes / drive / shell / closecdrom changes the default value of this subkey to: Close (& C)

Then CLOSECDROM is created under ClosecDrom: HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / DRIVE / SHELL / CloseCDROM / Command Change the default value of this subkey to: c: /winnt/system32/wscript.exe c: /closecdrom.vbe

Note that the system path here is correct, my operating system is Win2000, installed in C: /, so the path is: C: / Winnt / System32

third step

Close the registry, then right-click the drive letter of the drive to see if there is a menu item in the menu that pops up? Click to try it, huh, huh, first confirm that you have already played the CD-ROM drive, don't you pop up first, then turn it off, why, look at the script know ^ _ ^

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

New Post(0)