如何使用vbs脚本连接到VNC?

时间:2017-05-21 19:09:46

标签: shell vbscript

如何使用当前目录而不是静态连接到VNC服务器。 如果我使用 - oShell.Run """C:\Users\Admin\Documents\SharpDevelop Projects\test\bin\Debug\tvnviewer.exe"" 10.73.240.112"一切正常。

Set oShell = WScript.CreateObject("WScript.Shell")
Dim sCurPath 
sCurPath = CreateObject("Scripting.FileSystemObject").GetAbsolutePathName(".") 
oShell.Run sCurPath & "\tvnviewer.exe" 10.73.240.112
WScript.Sleep 500
oShell.SendKeys "keepout" & chr(13)

0 个答案:

没有答案