yezigl / chnroutes

Automatically exported from code.google.com/p/chnroutes
0 stars 0 forks source link

Windows的调用方法基本是错误的 #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
正确的方法是:
script-security 2
up '"C:/WINDOWS/system32/cscript.exe" "C:/Program
Files/OpenVPN/config/vpnup.vbs"'
down '"C:/WINDOWS/system32/cscript.exe" "C:/Program
Files/OpenVPN/config/vpndown.vbs"' 

否则会提示无法执行vbs脚本

Original issue reported on code.google.com by cnye...@gmail.com on 21 Mar 2010 at 4:07

GoogleCodeExporter commented 9 years ago
似乎是有部分电脑没有建立 vbs 到 wscript.exe的关联, 
所以造成无法执行的错误. 
难道这个文件关联不是系统默认建立的???

Original comment by Numb.Maj...@gmail.com on 22 Mar 2010 at 8:19

GoogleCodeExporter commented 9 years ago
至少在vista及win7里不是默认关联的

还有,script-security 2的提示是所有平台下openvpn 
>=2.1的时候都需要加的

Original comment by cnye...@gmail.com on 22 Mar 2010 at 11:17

GoogleCodeExporter commented 9 years ago
嗯. 保险起见, 还是在wiki上说明一下好了. 

Original comment by Numb.Maj...@gmail.com on 22 Mar 2010 at 1:29