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

Advertisement

mallett76
Joined:
Posts:
1
Location:
MA

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?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
32,114
Location:
Prague, Czechia

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'};

Reply with quote

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.

Reply with quote

Advertisement

You can post new topics in this forum