Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Old 01-17-2020, 08:58 PM
ddsrakesh ddsrakesh is offline
Registered User
Join Date: Jan 2020
Posts: 1

Sub Button1_Click()
Dim host, Username, Password As String
Dim IPAddress As Integer
Dim Port As Integer

host = Sheets("Sheet1").Cells(3, 2)
Username = Sheets("Sheet2").Cells(3, 2)
IPAddress = Sheets("Sheet1").ActiveCell

Shell "D:\SecureCRT_VBS\SecureCRT\SecureCRT.exe /N "host" /T /SSH2 /P 22 "IPAddress" /L "Username" /PASSWORD "Password""

End Sub

above script not working
Reply With Quote
Old 01-20-2020, 07:23 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,577
Hi ddsrakesh,

What do you mean by "does not work"?

Do you get an error? If so, what is it?

What is "Shell"? It is not defined anywhere.

Is the SecureCRT.exe really on the D:\ drive in that location?

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 09:00 PM.