Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 我需要创建一个Bookmarklet来运行批处理文件_Javascript_Powershell_Batch File - Fatal编程技术网

Javascript 我需要创建一个Bookmarklet来运行批处理文件

Javascript 我需要创建一个Bookmarklet来运行批处理文件,javascript,powershell,batch-file,Javascript,Powershell,Batch File,我需要帮助编写代码,在firefox和chrome中创建bookmarklet 单击bookmarklet后,它必须运行指向它的批处理文件/powershell文件 我编写了如下代码: javascript:(function(){var wshShell = new ActiveXObject("WScript.Shell"); wshShell.Run("F:\App\bin\CCC.bat")})(); 但它抛出一个错误,如下所示: javascript:(function(){var

我需要帮助编写代码,在firefox和chrome中创建bookmarklet

单击bookmarklet后,它必须运行指向它的批处理文件/powershell文件

我编写了如下代码:

javascript:(function(){var wshShell = new ActiveXObject("WScript.Shell"); 
wshShell.Run("F:\App\bin\CCC.bat")})();
但它抛出一个错误,如下所示:

javascript:(function(){var wshShell = new ActiveXObject("WScript.Shell"); 
wshShell.Run("F:\App\bin\CCC.bat")})();
未定义ActiveXObject`


这有帮助吗?这篇文章说。。我们无法使用浏览器书签。请帮助了解如何通过浏览器允许ActiveXObject。转到此页: