1.) Its a 2 step task:
a.) First u'll hv to add ur application.
b.) Then u'll hv to register it.
a.) Copy/paste following code in notepad and save the file with
.REG extension and then run it:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Classes\My_AutoPlay_CustomHandler1\shell\open]
@="Play CD"
[HKEY_LOCAL_MACHINE\Software\Classes\My_AutoPlay_CustomHandler1\shell\open\command]
@="\"C:\\Program Files\\Winamp\\Winamp.exe %1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_AutoPlay_CustomHandler1]
"Action"="Play CD"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_AutoPlay_CustomHandler1]
"Provider"="Winamp"
[HKEY_LOCAL_MACHINE\Software\Classes\My_AutoPlay_CustomHandler1\shell\open\command]
@="\"C:\\Program Files\\Winamp\\Winamp.exe %1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_CustomHandler1]
"DefaultIcon"="\"C:\\Program Files\\Winamp\\Winamp.exe,0\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_AutoPlay_CustomHandler1]
"InvokeProgID"="My_AutoPlay_CustomHandler1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\My_CustomHandler1]
"InvokeVerb"="open"
It'll add the application, u can change the path to ur desired one.
2.) Now to register the application, again Copy/paste following code in notepad and save the file with
.REG extension and then run it:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival]
"My_AutoPlay_CustomHandler1"=""
U can do the same for "Music, Pictures, DVD, etc" section, which u'll get under the same key!
PS: U can add other applications in the same manner, just change the "My_AutoPlay_CustomHandler1" to something else, like "My_AutoPlay_CustomHandler2" or nething else. also change the action, provider, path, etc.
2.) For adding the desired folder into My Computer, u hv to register the CLASSID into Regitry. Just tell me the name and path of ur desired folder and i'll post the code