in reply to Win32::OLE and WMI

Just hazarding a guess here, but since the VB requires the double-backslash (Verified in the MSDN Document), wouldn't you need 4 backslashes in perl, since 2 get eaten in Intrapolation ?
$wmiFileSecSetting = Win32::OLE->GetObject("winmgmts:Win32_LogicalFi +leSecuritySetting.path='d:\\\\programming'");

"When you are faced with a dilemma, might as well make dilemmanade. "

Replies are listed 'Best First'.
Re: Re: Win32::OLE and WMI
by grmm2 (Acolyte) on Feb 03, 2004 at 08:31 UTC
    Good point. I've just tried 2 backslashes and then 4, and get almost the same result. A $wmiFileSecSetting object in each case but Data::Dumper shows it in two different ways. 2 backslashes - 'Path' => '\\\\PCCS023\\root\\cimv2:Win32_LogicalFileSecuritySetting.Path="d:\\\\programming"' 4 backslashes: 'Path' => '\\\\PCCS023\\root\\cimv2:Win32_LogicalFileSecuritySetting.Path="d:\\\\\\\\programming"'