首页 > 解决方案 > 将 Javascript 嵌入批处理文件以清除 Internet Explorer SSL 状态

问题描述

我想创建一个批处理文件来清除 Internet Explorer SSL 状态。到目前为止,我所知道的清除 SSL 状态的唯一方法是通过 JavaScript。我想将 JavaScript 嵌入到批处理文件中。

<script type='text/javascript'>  
    document.execCommand("ClearAuthenticationCache");  
</script> 

我试过了

@set @junk=1 /*
@echo off
cscript //nologo //E:jscript %0 %*
goto :eof
*/

document.execCommand("ClearAuthenticationCache"); 

不工作

标签: javascriptbatch-fileembed

解决方案


推荐阅读