View Single Post
Old 08-02-2012, 05:49 PM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,522
Post Example: SFTP Tab Automation

Demonstrates opening an SFTP tab & programmatically driving a file download. Prior to running this script, the currently active tab must already be connected with the SSH2 protocol to a remote server that is capable of providing SFTP functionality; otherwise an error will occur and script execution will be halted.

Original Script Example:

New Script Example:
This example will open SFTP connections for all connected tabs in the same SecureCRT window, by default closing existing shell tabs. No file transfers are automated in this example; it's purpose is to show how to open SFTP tabs in place of shell connections (and it also shows how to drive the Command Window in Send to All mode as well, in order to send initial lpwd and pwd commands to each new SFTP tab).

Attached Files
File Type: txt SFTPTabAutomation.vbs.txt (3.5 KB, 1578 views)
File Type: txt (4.3 KB, 1361 views)
File Type: txt (4.2 KB, 80 views)

Last edited by jdev; 10-05-2020 at 04:10 PM. Reason: Add new example for Automating SFTP tab opening for existing tabs
Reply With Quote