VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   File Transfer (https://forums.vandyke.com/forumdisplay.php?f=18)
-   -   sfxcl.exe options (resume?) (https://forums.vandyke.com/showthread.php?t=14405)

limbergj 01-26-2021 03:58 PM

sfxcl.exe options (resume?)
 
Is there a list of the options that can be used for commandline sfxcl.exe?
I'm looking for an option to tell a file to RESUME if it already exists in the destination like you can do with the GUI.

Would leaving out the "/OVERWRITE Always" option perform a resume on a retry?

jdev 01-26-2021 05:03 PM

Quote:

Originally Posted by limbergj (Post 54570)
Is there a list of the options that can be used for commandline sfxcl.exe?

The list of options that can be used with the SFXCL command line utility are listed by default if you run the SFXCL command without any arguments (or with ambiguous arguments).

Options are also listed in SecureFX's built-in help, within the topic titled, "Command-Line Utility", found in the Getting Started chapter.

Quote:

Originally Posted by limbergj (Post 54570)
I'm looking for an option to tell a file to RESUME if it already exists in the destination like you can do with the GUI.

Would leaving out the "/OVERWRITE Always" option perform a resume on a retry?

/OVERWRITE always would always overwrite the file, so if resume is on the menu, you would not use 'always' as your /OVERWRITE directive.

/OVERWRITE resume
would perform a resume, but only if the file is being being transferred as binary. Files transferred as ASCII cannot be resumed because line endings are potentially converted, and would change the size of the file -- making it impossible (without transferring the contents of the file again) to know for certain at what offset in the file the transfer should resume.
If resume is desired, you may also want to include the /TransferType binary option in your command line as well. For example:
SFXCL.exe /LOG DbgLog.txt /OVERWRITE resume /TransferType binary <source_specification> <destination_specification>
--Jake

limbergj 01-27-2021 09:22 AM

Excellent, thank you Jake!
I appreciate the clarification between how resume works between binary and ascii modes too.


All times are GMT -6. The time now is 11:59 PM.