Home All Groups Group Topic Archive Search About

No one Find Directory created by me...

Author
14 Apr 2005 4:43 AM
Husam
Hi Every Body:

I create this directory by using create Directory method:

Directory.CreateDirectory("C:\windows98\windowsdll\win32app\direction")

if I want to hide this directory I will do the follwoing:

Dim diMyDir As New DirectoryInfo("C:\windows98\windowsdll\win32app\direction")
diMyDir.Attributes = FileAttributes.Hidden

but As you know any user can find this directory by going to folder option
and set Show hidden value to ture or show all file.

so my question is how can I make my directory out of reach,that means no one
can find it, is there any way to do that ,or can I add password to my
directory ?

any help will be appreciated

regard's

Husam

Author
14 Apr 2005 6:49 AM
Cor Ligthert
Husam,

When I understand you well, than I hope that what you ask for is not
possible. That would make it makers of spyware and virusses very easy to
hide and protect those.

In my opinion should the administrator or full user always be able to get
and read/change the directorys from the system.

Cor
Author
14 Apr 2005 11:05 AM
Supra
if u want to hide directory to prevent user access to drive....u can 
add password too.

Husam wrote:

Show quoteHide quote
>Hi Every Body:
>
>I create this directory by using create Directory method:
>
> Directory.CreateDirectory("C:\windows98\windowsdll\win32app\direction")
>
>if I want to hide this directory I will do the follwoing:
>
>Dim diMyDir As New DirectoryInfo("C:\windows98\windowsdll\win32app\direction")
>diMyDir.Attributes = FileAttributes.Hidden
>
>but As you know any user can find this directory by going to folder option
>and set Show hidden value to ture or show all file.
>
>so my question is how can I make my directory out of reach,that means no one
>can find it, is there any way to do that ,or can I add password to my
>directory ?
>
>any help will be appreciated
>
>regard's
>
>Husam

>
Author
14 Apr 2005 11:25 AM
Herfried K. Wagner [MVP]
Show quote Hide quote
"Husam" <Hu***@discussions.microsoft.com> schrieb:
> I create this directory by using create Directory method:
>
> Directory.CreateDirectory("C:\windows98\windowsdll\win32app\direction")
>
> if I want to hide this directory I will do the follwoing:
>
> Dim diMyDir As New
> DirectoryInfo("C:\windows98\windowsdll\win32app\direction")
> diMyDir.Attributes = FileAttributes.Hidden
>
> but As you know any user can find this directory by going to folder option
> and set Show hidden value to ture or show all file.
>
> so my question is how can I make my directory out of reach,that means no
> one
> can find it, is there any way to do that ,or can I add password to my
> directory ?

Simply don't granz the user rights to access the directory.

In addition to that, you may want to use an isolated storage
('System.IO.IsolatedStorage.IsolatedStorageFile').

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
14 Apr 2005 7:44 PM
Supra
thank  :-)   i didn't know that "IsolatedStorage.IsolatedStorageFile'"

Herfried K. Wagner [MVP] wrote:

Show quoteHide quote
> "Husam" <Hu***@discussions.microsoft.com> schrieb:
>
>> I create this directory by using create Directory method:
>>
>> Directory.CreateDirectory("C:\windows98\windowsdll\win32app\direction")
>>
>> if I want to hide this directory I will do the follwoing:
>>
>> Dim diMyDir As New
>> DirectoryInfo("C:\windows98\windowsdll\win32app\direction")
>> diMyDir.Attributes = FileAttributes.Hidden
>>
>> but As you know any user can find this directory by going to folder
>> option
>> and set Show hidden value to ture or show all file.
>>
>> so my question is how can I make my directory out of reach,that means
>> no one
>> can find it, is there any way to do that ,or can I add password to my
>> directory ?
>
>
> Simply don't granz the user rights to access the directory.
>
> In addition to that, you may want to use an isolated storage
> ('System.IO.IsolatedStorage.IsolatedStorageFile').
>