IE Call the local resources(CALL SOFTWARE)

  You kown, it is difficult to call local resources using IE .particularly for call sofeware. Unless use activeX.

  Here is a simple way for it!

1.

Create a .reg file with content as following: 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\HelloWorld]
@="HelloWorld Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\HelloWorld\DefaultIcon]
@="C:\\test.cmd,1"

[HKEY_CLASSES_ROOT\HelloWorld\shell]
@=""

[HKEY_CLASSES_ROOT\HelloWorld\shell\open]
@=""

[HKEY_CLASSES_ROOT\HelloWorld\shell\open\command]
@="\"C:\\test.cmd\" \"%1\"" 

save as *.reg file!  And execute it!

 

2. And then create a file location: C:\\test.cmd with content as following:

ping 127.0.0.1

pause

 

save it as .cmd file .(Attention: it must location in C:\\test.cmd)

 

3.And then Input following in IE adress bar: HelloWorld://1 .You can see the following:

 

 

                                                                                 

posted on 2010-06-26 19:02  Chris Yang  阅读(163)  评论(0编辑  收藏  举报

导航