Hello,

Has anyone successfully managed to control these two application via
Perl using win32::OLE?
I have some examples of basic scripts that control these but I want to
do it from Perl and so far cannot create an instance of it

This is a snipet that should start FTP.exe

use Win32::OLE;
$Machine = "\\\\ha031515";
$classID= "HclFtp.Engine";
$Class = [$Machine, $classID];
$HostEx = Win32::OLE->GetActiveObject( $Class );
if( ! $HostEx )
{
    $HostEx = new Win32::OLE( $Class, ) || die "Could not create an OLE
'$Class' object";
}
$Sessions = "FtpEngine.Sessions";

but I get this.

Name "main::Sessions" used only once: possible typo at hummingbird.pl
line 10.
Win32::OLE(0.1501) error 0x800401f3: "Invalid class string" at
hummingbird.pl line 5
        eval {...} called at hummingbird.pl line 5

Help!

--
Dexter Casey
FA&O IT Support


_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to