Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-31-2020, 06:46 PM
gates2010 gates2010 is offline
Registered User
 
Join Date: Jun 2012
Posts: 19
Smile Open SFTP and download the file selected in the ssh2 session

Hi,
I am hoping to streamline the steps I do, to download the files using sftp via secureCRT. I have come across the "SFTP Tab Automation" where it is set to download a specific file, I am hoping to get an expanded version of it.

If you have a way to do this, please let me know, here are my steps:

1. run pwd to identify file location
2. select file name
3. open sftp tab
4. populate command "get <file location>/<filename>"

I am hoping the script can be updated to automate this as below:
a1. High-light (select) the name of the file I want download
a2. Click the button (button would run steps 1-4 and start the download, use the highlighted/selected text as filename, find the file location using pwd, open the sftp tab and populate the get command).

I am hoping this is feasible in SecureCRT, appreciate your help/guidance in this.

Thank you.
Reply With Quote
  #2  
Old 02-02-2020, 02:06 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 300
Hi gates2010,

Have you taken a look at our STFP Tab Automation script example?
https://forums.vandyke.com/showpost....90&postcount=1
The script example demonstrates opening an SFTP tab & programmatically driving a file download.

We do not provide custom scripts, but this example will be a good place for you to start! Let us know if you gave any specific questions after reviewing the script!
__________________
Thanks,
--Brittney

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
sftp script


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 07:42 AM.