Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Re: Perl code for transferOptions.ResumeSupport.State = TransferResumeSupportState.Off

Hi Martin,
Well - super happy to report that that code you provide my $transferOptions->{'ResumeSupport'}->{'State'} = $consts->{'TransferResumeSupportState_Off'}; totally works.

Thanks so much, this was a HUGE help.
martin

Re: Perl code for transferOptions.ResumeSupport.State = TransferResumeSupportState.Off

I do not know Perl, but this may work:
my $transferOptions = Win32::OLE->new('WinSCP.TransferOptions');
$transferOptions->{'ResumeSupport'}->{'State'} = $consts->{'TransferResumeSupportState_Off'};
mallett76

Perl code for transferOptions.ResumeSupport.State = TransferResumeSupportState.Off

I am having an issue where after I upload the file to the SFTP site, the file has a ".filepart" extension.

I am writing the script in perl, and have searched for code that would deal with this issue. From what I read, it sounds like transferOptions.ResumeSupport.State = TransferResumeSupportState.Off may work. But, the problem is, is that this code is not written in Perl.

And, the main example that WINSCP has posted on the website for OLE 32, the one that contains "my $transferOptions = Win32::OLE->new('WinSCP.TransferOptions');" does not have this "transferOptions.ResumeSupport.State = TransferResumeSupportState.Off" within it.

Does anyone have a Perl script where they are setting the transferOptions.ResumeSupport.State to off?