在abaqus关联子程序的过程中,在桌面创建了bat文件后,双击bat可能会遇到:Cannot determine the location of the VS Common Tools folder,在网上查阅大量资料,最终解决了问题,解决方案有两条:
2.注册表被禁,解禁步骤如下
①用组策略解禁

②绝大部分人采用组策略解禁即可,若无效,需要脚本解禁:方法为新建文本文档,即.txt,将代码复制粘贴后,保存为该解法对应的后缀,本人最终通过js脚本,保存为.js后双击即可,通过win+R,输入regedit,发现可以正常打开就完成了。
=========================解开代码===========================
DOS解法--------------------------------
regedit/d HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
HTM解法---------------------------------
<html>
<body>
<script language="JavaScript">
var shl=new ActiveXObject("http://Wscript.shell");
shl.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\DisableRegistryTools",0, "REG_DWORD");
window.alert("你的zcb编辑器已解除禁用!")
</script>
</body>
</html>
inf解法--------------------------------
[Version]
Signature="Chicago"
[DefaultInstall]
DelReg=DeleteMe
[DeleteMe]
HKCU,"Software\Microsoft\Windows\CurrentVersion\Policies\System","DisableRegistryTools"
JS解法------------------------------------
var WSHShell=WScript.CreateObject("http://WScript.Shell");
WSHShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\DiableRegistryTools",0,"REG_DWORD");
WSHShell.RegDelete("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\");
vbs解法------------------------------------
Dim WSHShell
Set WSHShell=WScript.CreateObject("http://WScript.Shell")
WSHShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
解法--------------------------------
①把下面文件复制到记事本上,保存为扩展名为reg的文件!
REGEDIT4
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableRegistryTools"=dword:00000000
免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删