in reply to Re: Win32::OLE properties
in thread Win32::OLE properties

Thanks, your Excel example helped to get me the answer! The proper syntax is $ftp->Option(AutoCloseMethod), as in:

use Win32::OLE qw(in with); use Win32::OLE::Const 'CuteFTPPro'; my $ftp = Win32::OLE->new('CuteFTPPro.TEConnection', 'Close'); print "autoclosemethod is currently ", $ftp->Option(AutoCloseMethod), +"!\n"; $ftp->SetProperty('Option', "AutoCloseMethod", 1); print "autoclosemethod is now ", $ftp->Option(AutoCloseMethod), "!\n";

That got me the output I needed:

D:\>perl -w test.pl autoclosemethod is currently 0! autoclosemethod is now 1!

Thanks for the quick help!