|
If you use:
System.IO.File.Encrypt("filename.txt")
or
<br />
DirectoryInfo d = new DirectoryInfo("C:\newfolder")<br />
d.SetAccessControl(...<br />
You can ensure that the user account that runs this code is the only one able to access the contents.
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|
|
Hello,
Have no idea why you got downvoted, got my "5" to bring it back in shape.
I'm always a little pissed if somebody is doing so without any commend! (helps nobody)
All the best,
Martin
|
|
|
|
|
I didn't do it, but it would appear that his solutions didn't address the question asked at all.
They specified encrypting files or setting permissions on folders, but the question asked how to block access to entire drives and folders.
Encryption won't really help at all. Setting permissions will, but is difficult to manage, depending on the requirements of the application.
|
|
|
|
|
Dave Kreskowiak wrote: that his solutions didn't address the question asked at all.
I do recognized that half of his answere would not help sofing the question, but permission is a way to do it (at least he could try it).
Dave Kreskowiak wrote: I didn't do it
I would always expect a statement from you which helps also the one who answered the question.
That's one of the reasons I'm answering questions here (never stop learning!)
All the best,
Martin
|
|
|
|
|
In your code - you don't do anything. This is best left up to Group Policies. Pickup the Resource Kits for Windows XP or Windows Server 2003 and it's explained ad nauseum.
|
|
|
|
|
Hi all,
I created an MDI application, still with .NET Framework 1.1, and a child form has a user control in which is defined a AxWebBrowser control.
I wanted to disable Ctrl+N and Ctrl+P keystrokes, so I implemented the MsHtmlHstInterop.IDocHostUIHandler interface on the user control and changed the TranslateAccelerator method to do so, but it doesn't seem to be called.
Everything's working with no MDI application.
Could you help me, please?
Thanks.
Daniele Camanni.
|
|
|
|
|
Hi,
I am new to sharepoint technology. can anyone give me a sample C# code to access the sharepoint/wss3.0 site from remote machine without using Web Service.
Thanks
Ramamurthi
ramamurthic@gmail.com
|
|
|
|
|
Hi,
I have some textboxes on a tabpage using binding to show data, but it seems that the Text property of my textboxes are empty when they are on a not visible tabpage. (when the textboxes are visible the value of the text property is OK)
After switching to the tabpage, the field data is shown in the textbox and the text property is also OK.
------------------------------
The problem i have now is, that the component to verify the "Text" entered by the users gives a fault because some fields are empty..
and they are not because the dataset has only been set to modify...
(when switching to all tabs without modifying data i can post the row again.)
Has anyone a solution, a suggestion for this or do i need to workaround the problem ...
Thx
Kurt
|
|
|
|
|
hi ,
can any body tell why is the error fail to load view state in grid view in c#.net
|
|
|
|
|
I wasn't to find this in any of the previous posts, so I am adding a new topic. If anyone knows of other websites to check, please let me know. My e-mail address is at the bottom.
I am unable to diff a Designer.cs file (Compare with Previous Version) in the 2005 .NET IDE. Is there a setting that I am missing? I swear this use to work before adding the patch and update. Of course, it could also be a problem with Clear Case. I should post something there instead.
Thanks in advance.
Matt Arthur
SW Engineer
Quality Vision International
mta@qvii.com
-- modified at 8:22 Wednesday 30th May, 2007
|
|
|
|
|
if we create an Graphics object named graph, use it to draw shap or any other thing.
what would happen if i didn't used graph.Flush(),and graph.Dispose() after finish using
the graph object.
thanks in advance
Hussam
|
|
|
|
|
I'm not sure about what Flush does in this context, but if it is like a file then it won't necessariliy complete the rendering until some later stage.
Dispose is easier because it is a well defined interface. If you fail to call Dispose the garbage collector will dispose the object at some later stage. However, if an object has a Dispose method or implements IDisposable then you should be disposing it because it means the object had unmanaged or scarce resources which need to be freed up. Failing to free the resource in a timely manner may cause your application to perform poorly or crash (the resource be become exhausted and the garbage collector won't know anything about it)
|
|
|
|
|
Hello
I want to send single/multiple folders to single/multiple users with in a network. Reply me asap.
Devesh Mishra
|
|
|
|
|
devesh_code wrote: I want to send single/multiple folders to single/multiple users with in a network.
What do you mean by that?
|
|
|
|
|
Heyyy
I want to send folder(s) on another computer in the network to single as well as multiple users.
Devesh Mishra
|
|
|
|
|
devesh_code wrote: I want to send folder(s) on another computer
By send do you mean move or copy?
devesh_code wrote: to single as well as multiple users
Users are not a valid destination for a folder. Other folders are.
Now where do you actually want to send the folders?
|
|
|
|
|
Hi,
Here, If you share the folder at the remote PC and use Copy functions etc. it will work similarly as it works on Local PC.
Manoj
Never Gives up
|
|
|
|
|
Hi
Actually i am able to send file without sharing and i also want to send folder also like that.
One way can be zip it and then send it and at the other end unzip it but it will take more time, this also i am not getting properly.
plz...
Devesh Mishra
|
|
|
|
|
Hi;
I need some help in opengl coding (C#) I try to make paint program in c# with opengl functions.Could you help me please.I can't find any source code abot paint program like mspaint.
A
|
|
|
|
|
Can we compare two datareader values
example:
I have two datareaders: dr1 and dr2
After one read from source;
Can we compare dr1[0]==dr2[0]
thanks
|
|
|
|
|
Try:
dr1.GetValue(0) == dr2.GetValue(0)
|
|
|
|
|
i think you can't compare two objects the best way is Overload the == and != operator and write the logic that will iterate through each data and compare it with another reader and return accroding to that
What you think ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
The act of comparing an object should not change the state of the object*. The act of iterating through two datareaders and comparing the individual values will change the state of the datareader.
* Otherwise well end up with the software development equivalent of the Heisenberg Uncertainty Principle
|
|
|
|
|
i mean that instead of comparing there they can overload == operator
and compare by getvalue method by interating the columns
i think both are doing the same
For optimal performance, SqlDataReader avoids creating unnecessary objects or making unnecessary copies of data. Therefore, multiple calls to methods such as GetValue return a reference to the same object. Use caution if you are modifying the underlying value of the objects returned by methods such as GetValue
Taken from MSDN
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
yes you can compare values in two datareaders.
|
|
|
|