B*********L 发帖数: 700 | 1 我要连接公司的数据库需要先连好VPN。
win7下,click下面这个CMD文件,运行后VPN就连上了。现在用win7的task scheduler
却怎么也不run。请问各位大侠,win7下,这个scheduler应该怎么做才能让它运行
?谢谢了。
(其中y.txt里只有个y字母,是作为input)
REM Disconnects and reconnects Cisco VPN client
REM usage = VPNreconnect.cmd
REM location of vpnclient
set INSTALL_PATH=C:\Program Files\Cisco Systems\VPN Client
echo on
REM command line
"%INSTALL_PATH%\vpnclient" disconnect
REM name of profile used to connect
set VPNPROFILE="xxxxx.xxxxx.xxxx.Facing"
REM command line
::"%INSTALL_PATH%\vpnclient" connect %VPNPROFILE%
"%INSTALL_PATH%\vpnclient" connect %VPNPROFILE% user uuuuu pwd pppppp stdin
< y.txt |
M*****r 发帖数: 1536 | 2 check the windows 7 task scheduler log first
scheduler
【在 B*********L 的大作中提到】 : 我要连接公司的数据库需要先连好VPN。 : win7下,click下面这个CMD文件,运行后VPN就连上了。现在用win7的task scheduler : 却怎么也不run。请问各位大侠,win7下,这个scheduler应该怎么做才能让它运行 : ?谢谢了。 : (其中y.txt里只有个y字母,是作为input) : REM Disconnects and reconnects Cisco VPN client : REM usage = VPNreconnect.cmd : REM location of vpnclient : set INSTALL_PATH=C:\Program Files\Cisco Systems\VPN Client : echo on
|
B*********L 发帖数: 700 | 3 兄弟,多谢了。我回头好好读读log。现在用xp_cmdshell, 到时成功了。
【在 M*****r 的大作中提到】 : check the windows 7 task scheduler log first : : scheduler
|
s**********o 发帖数: 14359 | 4 你SCHEDULE不是也要手动的去RUN吗,跟直接RUN VPN有多大区别啊 |
c**t 发帖数: 2744 | 5 can you manually run the batch from command line?
scheduler
【在 B*********L 的大作中提到】 : 我要连接公司的数据库需要先连好VPN。 : win7下,click下面这个CMD文件,运行后VPN就连上了。现在用win7的task scheduler : 却怎么也不run。请问各位大侠,win7下,这个scheduler应该怎么做才能让它运行 : ?谢谢了。 : (其中y.txt里只有个y字母,是作为input) : REM Disconnects and reconnects Cisco VPN client : REM usage = VPNreconnect.cmd : REM location of vpnclient : set INSTALL_PATH=C:\Program Files\Cisco Systems\VPN Client : echo on
|