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

Ully

RESOLVED: Receiving non-lvalue error when trying to set SessionLogPath in Perl

Discovered through the GitHub that you have to use SetSessionLogPath() to set this value. This isn't in the documentation on the winscp.net website.
Ully

Receiving non-lvalue error when trying to set SessionLogPath in Perl

I'm trying to create a new session and I want to set a SessionLogPath on a Windows host.
# Initialize for Session
my $session = Win32::OLE->new('WinSCP.Session');
$session->SessionLogPath = "D:/SCP_Workflow_Logs/";
When I reach this point in the code I get the error:
Can't modify non-lvalue subroutine call at ********* line 1295.
Does anyone know what's causing this?