No one Find Directory created by me...

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

Guest

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
 
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
 
Husam said:
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').
 
Back
Top