IE Call the local resources(CALL SOFTWARE)

本文介绍了一种在Internet Explorer中调用本地资源的简易方法,尤其适用于无法直接访问的本地应用程序。通过创建注册表文件和批处理文件,实现自定义协议调用本地cmd命令,演示了如何通过IE地址栏输入特定协议来触发本地操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  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:

2010062618595540.jpg

 

 

                                                                                 

转载于:https://www.cnblogs.com/chyang/archive/2010/06/26/1765891.html

cmake 出来的工程,总是提示 manifest 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 MSB3073 命令“setlocal mt.exe -nologo -manifest "E:/src/cef/cef90/tests/ceftests/resources/win/ceftests.exe.manifest" "E:/src/cef/cef90/tests/ceftests/resources/win/compatibility.manifest" -outputresource:"E:/src/cef/cef90/tests/ceftests/Debug/ceftests.exe";#1 if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/chrome_elf.dll E:/src/cef/cef90/tests/ceftests/Debug/chrome_elf.dll if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/libcef.dll E:/src/cef/cef90/tests/ceftests/Debug/libcef.dll if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/libEGL.dll E:/src/cef/cef90/tests/ceftests/Debug/libEGL.dll if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/libGLESv2.dll E:/src/cef/cef90/tests/ceftests/Debug/libGLESv2.dll if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/snapshot_blob.bin E:/src/cef/cef90/tests/ceftests/Debug/snapshot_blob.bin if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/v8_context_snapshot.bin E:/src/cef/cef90/tests/ceftests/Debug/v8_context_snapshot.bin if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_directory E:/src/cef/cef90/Debug/swiftshader E:/src/cef/cef90/tests/ceftests/Debug/swiftshader if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Debug/d3dcompiler_47.dll E:/src/cef/cef90/tests/ceftests/Debug/d3dcompiler_47.dll if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Resources/chrome_100_percent.pak E:/src/cef/cef90/tests/ceftests/Debug/chrome_100_percent.pak if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Resources/chrome_200_percent.pak E:/src/cef/cef90/tests/ceftests/Debug/chrome_200_percent.pak if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Resources/resources.pak E:/src/cef/cef90/tests/ceftests/Debug/resources.pak if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_if_different E:/src/cef/cef90/Resources/icudtl.dat E:/src/cef/cef90/tests/ceftests/Debug/icudtl.dat if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd setlocal F:\devsoft\cmake-4.1.0\bin\cmake.exe -E copy_directory E:/src/cef/cef90/Resources/locales E:/src/cef/cef90/tests/ceftests/Debug/locales if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd”已退出,代码为 31。 ceftests C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133
07-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值