![]() |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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:
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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:
Code:
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
|
#5
|
|||
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|