Provide a script syntax or examples? [3]

Provide a script syntax or examples?

Sunday, July 17, 2011 9:52 PM - lai

Could provide a script syntax or examples for script programming! Thank you!
I found secure CRT provide syntax and examples !

Program Ver. : Xshell 4


Re: Provide a script syntax or examples?

Sunday, July 17, 2011 10:35 PM - Support

Script reference is available in Xshell manual. Open Xshell manual by clicking Help > Xshell Help. Find the 'Using Script' from the left side menu.

---
Technical Support


How to exit from script

Tuesday, January 5, 2016 5:42 PM - How to exit from script

Hi,

How we can exit the script if some condition occurred ?

companyID = xsh.Dialog.Prompt ("Enter Company ID", "Prompt Dialog", "", 0)
if companyID = "" then
xsh.Dialog.MsgBox("Invalid companyID!")
xsh.Session.Close()
exit
end if
xsh.Dialog.MsgBox("Valid companyID!")
xsh.Session.Open(........)


Re: Provide a script syntax or examples?

Thursday, January 7, 2016 4:29 AM - zoo

Try to use "exit sub".


Previous views: 489