If $CmdLine[0] <> 6 Then MsgBox(4096, "error", "не заданы параметры", 10) Else $SSHip = $CmdLine[1] $SSHport = $CmdLine[2] $SSHuser = $CmdLine[3] $SSHpassword = $CmdLine[4] $ID = $CmdLine[5] $PW = $CmdLine[6] EndIf ShellExecute( @ScriptDir & "\Bin\kitty.exe", " -P " & $SSHport & " -pw " & $SSHpassword & " -T -N -L :"& $ID & ":127.0.0.1:"&$ID& " "& $SSHuser&"@"&$SSHip& " -auto-store-sshkey -send-to-tray -nofiles") Sleep (20) ShellExecute( @ScriptDir & "\Bin\tvnviewer.exe", "127.0.0.1::"& $ID &" -password="& $PW) |