因为精易模块自带的 系统_设置IEd理地址() 命令在win10下无法生效,设置了要手动去点击一下internet选项卡里的确定按钮才生效,所以为了临时过度采用bat方式来设置d理,急用的就凑合用吧
判断 (取文本长度 (d理地址 ) > 0 ) reg = “reg add ” + #引号 + “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” + #引号 + “ /v ProxyEnable /t REG_DWORD /d [开关] /f” + #换行符 + “reg add ” + #引号 + “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” + #引号 + “ /v ProxyServer /d ” + #引号 + “[地址]” + #引号 + “ /f” + #换行符 + “del %0” 删除注册项 ( #现行用户, “Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer”) 写到文件 (取运行目录 () + “\qh.bat”, 到字节集 (子文本替换 (子文本替换 (reg, “[开关]”, “1”, , , 真), “[地址]”, d理地址, , , 真)) ) 执行 (4, 取运行目录 () + “\qh.bat”, , 取运行目录 (), 1 ) reg = “reg add ” + #引号 + “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” + #引号 + “ /v ProxyEnable /t REG_DWORD /d [开关] /f” + #换行符 + “reg add ” + #引号 + “HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings” + #引号 + “ /v ProxyServer /d ” + #引号 + “[地址]” + #引号 + “ /f” + #换行符 + “del %0” 删除注册项 ( #现行用户, “Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer”) 写到文件 (取运行目录 () + “\qh.bat”, 到字节集 (子文本替换 (子文本替换 (reg, “[开关]”, “0”, , , 真), “[地址]”, , , , 真)) ) 执行 (4, 取运行目录 () + “\qh.bat”, , 取运行目录 (), 1 )
|