Xshell Forum

Provide a script syntax or examples?

Last post: Thursday, January 7, 2016 4:29 AM by zoo, 3 reply

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

Provide a script syntax or examples?

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

Program Ver. : Xshell 4
Sunday, July 17, 2011 10:35 PM - Support

Re: Provide a script syntax or examples?

 
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
Tuesday, January 5, 2016 5:42 PM - How to exit from script

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(........)
Thursday, January 7, 2016 4:29 AM - zoo

Re: Provide a script syntax or examples?

 
Try to use "exit sub".