473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using WMI, Win32_LogicalFileSecuritySetting to grant access to a f

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?
Nov 16 '05 #1
1 4687
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
"Bozo" wrote:
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?

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
0
by: Praveen | last post by:
Hello. I am writing some code that accepts a DFS Link and Username and grants that User permissions to the physical directory that the DFS Link corresponds to. I am using the System.Management...
5
by: Nico | last post by:
My database have 20 tables and many users. I wish to store encrypted data in 3 tables and have only 3 users have access to them, walking into tables or using forms. Can someone point me a direct...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
6
by: Robert Pettersson | last post by:
Hi, I have built an webapp in C# that uses SMTPMail to send mail to users. When I installed it on the prodserver everything worked fine for me, but the users can not send mail. They get Access...
0
by: Johan | last post by:
Hi I'm using WMI to set and remove folderpermissions and it sems to work fine, sometimes. I start by having the folderpermissons manuly set to Everyone and Everone has full rights. When I'm...
2
by: roychong | last post by:
Hi everyone, I'm keen to use Access as a client application to access data from a MySQL database. The reasons are Access for its strength in reports creation and MySQL for its stability and...
0
by: rkrishna | last post by:
Using Oracle 10G - Enterprise edition - 10.2.0.1.0 I am trying to use the proxy user feature in order to have all our security done through Oracle. The requirement is this: - Java based...
1
by: AccessBeetle | last post by:
SELECT DISTINCT .Contact1Index, Contacts., Contacts., Contacts., Contacts., Contacts.prefix, Contacts.Suffix, Contacts., Contacts., Contacts.city, Contacts.state, Contacts.zip, ., tblStatusCloseout.,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.