Using WMI, Win32_LogicalFileSecuritySetting to grant access to a f

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I am using WMI, Win32_LogicalFileSecuritySetting etc to grant access to a
particular file for a user on a share on the server. This works fine for word
document extensions etc.

However when the document happens to be say a pdf I get a "Page Cannot be
found" error. I think this is related to the access permission not being
granted.

To open documents such as pdf, once I have set all the properties etc to
grant access to the file I call the following code: script =
"window.open('file:" + Path + "');";

This opens a new window but I get the page cannot be found error. Is there
something else i have to do?
 
Hi Bozo,
I need to make an application that deals with shared directories
(reads/deletes them) and I want to use c#.
But All acceptable I found are only api functions like NetShareAdd etc. and
the only article about sharing directories (with c#) used just those
functions (actually it was about calling those api functions from c#
environment).
Please, could u send me anything useful?
(I think I saw something using object System.Management.ManagementObject or
System.Management.ManagementClass with Infoke method, but I have no idea how
to use it - there is no detail explanation in msdn)
Thx,
stej
 
Back
Top