I'm updating scripts that manage some standart tasks with ftp sites within IIS, through it's OLE interface, but I can't find documentation about that. I need to know what each attribute refers to, so I can understand what is going on on the script. Can anyone point me to some reference? Does anyone know what the 'ServerComment' attribute in IisFtpSvc object mean?
Here's a snipet of the script I'm working on, for clarification:
Here's a snipet of the script I'm working on, for clarification:
Code:
my $ftpobj = Win32::OLE->GetObject("IIS://LocalHost/MsFtpSvc"); print "FTP service not found\n" unless $ftpobj; return undef unless $ftpobj; for my $ftpsite (in $ftpobj) { if ($ftpsite->{'Class'} eq 'IIsFtpServer' && $ftpsite->{'ServerComment'} =~ $ftp_re) { $ftpid = $ftpsite->{'Name'}; last; } }