Discussion:
win32_Directory.ChangeSecurityPermissionsEx
(too old to reply)
Trev
2009-05-04 15:24:26 UTC
Permalink
I've been trying to change file permissions using
win32_Directory.ChangeSecurityPermissionsEx
I'm battling to get the syntax correct...
{System.Management.ManagementBaseObjectChangeSecurityPermissionsEx
(System.Management.ManagementObject#Win32_SecurityDescriptor
SecurityDescriptor, System.UInt32 Option, System.String StartFileName,
System.Boolean Recursive)}

I've tried ("1 + 4") - ("SecDescriptor", "4", "c:
\folder","Recursive")

I've read the class info from msdn site.

Thanks
Gerry Hickman
2009-05-13 19:11:01 UTC
Permalink
Hi,

Do you have the rest of the code? I'm not sure why you're using the 'Ex'
version of the method? I'm not sure why you're using recursive?
Post by Trev
I've been trying to change file permissions using
win32_Directory.ChangeSecurityPermissionsEx
I'm battling to get the syntax correct...
{System.Management.ManagementBaseObjectChangeSecurityPermissionsEx
(System.Management.ManagementObject#Win32_SecurityDescriptor
SecurityDescriptor, System.UInt32 Option, System.String StartFileName,
System.Boolean Recursive)}
\folder","Recursive")
I've read the class info from msdn site.
Thanks
--
Gerry Hickman (London UK)
Loading...