VanDyke Software Forums

Go Back   VanDyke Software Forums > File Transfer
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-28-2010, 03:23 PM
BobW BobW is offline
Registered User
 
Join Date: Feb 2008
Posts: 9
SecureFX Multiple Operations

Hi Folks -

I have been tasked with logging onto a server, deleting the saved file from the last download, renaming the current file for download, downloading the file and then going back and renaming the file to the 'saved' version.

Since we run everything from batch files, I'm wondering if there is any way to accomplish all of this without resorting to 4 separate connect/disconnect cycles for each step. Is this even possible?

Thanks,

Bob
Reply With Quote
  #2  
Old 01-28-2010, 04:25 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 395
Hello BobW,

SFXCL provides options for deleting and renaming files on the remote. Unfortunately, it does not support stringing these options together, so each step does require a separate connection.

Assuming you are using the URL syntax and making an SFTP connection, the command-line syntax would be as follows:
Code:
sfxcl.exe /delete sftp://<user>@<host>/<filename> sfxcl.exe /rename sftp://<user>@<host>/<old_filename> <new_filename> sfxcl.exe sftp://<user>@<host>/<remote_source> <local_destination>
Additional information on the options that can be used with SFXCL can be found in the 'Getting Started / Command-Line Utility' topic of SecureFX's help file.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 01-29-2010, 07:22 AM
BobW BobW is offline
Registered User
 
Join Date: Feb 2008
Posts: 9
SecureFX Multiple Operations

Good Morning Brenda -

That's kinda what I thought. Unfortunately I dont have any choice in the matter so I guess the multiple connections is the way to go!

Thanks For Your Help!

Bob
Reply With Quote
  #4  
Old 01-29-2010, 09:02 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 395
Hi BobW,

One of the command-line utilities that might better fit your usage scenario can be found in the ClientPack. VSFTP is an interactive SFTP command-line utility that supports "batch mode".

With vsftp, the batch file might look as below:
Code:
rm <path_to_file> rename <old_path> <new_path> get <path_to_file> rename <old_path> <new_path>
The vsftp command line would then use the "-b" option to specify the batch file:
Code:
vsftp -b c:\temp\BatchFile.bat --pw p@s$word <user>@<host>
ClientPack can be downloaded for evaluation here.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #5  
Old 01-29-2010, 09:32 AM
BobW BobW is offline
Registered User
 
Join Date: Feb 2008
Posts: 9
SecureFX Multiple Operations

Thanks Brenda -

That solution sounds like EXACTLY what we need here. All of our process use DOS batch files to perform the FTP operations.

I'll pass that along to the Boss and see if we can get it budgeted.

Take Care,

Bob
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB 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 03:42 PM.


© copyright 1995-2010 VanDyke Software, Inc.