DaleCooper has asked for the wisdom of the Perl Monks concerning the following question:
ERROR:use Win32::OLE ; sub getVersion($){ return undef unless defined $_[0] ; my $vbsObject = Win32::OLE->new('Scripting.FileSystemObject') ; my $vbsFile = $vbsObject->getFile("$_[0]") ; return $vbsObject->GetFileVersion($vbsFile->{'Path'}) eq '' ? unde +f : $vbsObject->GetFileVersion($vbsFile->{'Path'}) ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pp generated exe can't find DLL when using OLE
by radiantmatrix (Parson) on Feb 01, 2005 at 14:16 UTC | |
by PodMaster (Abbot) on Feb 01, 2005 at 15:16 UTC | |
by DaleCooper (Initiate) on Feb 01, 2005 at 16:04 UTC | |
|
Re: pp generated exe can't find DLL when using OLE
by PodMaster (Abbot) on Feb 01, 2005 at 15:34 UTC |