No one Find Directory created by me...

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
 
C

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
 
S

Supra

if u want to hide directory to prevent user access to drive....u can
add password too.
 
H

Herfried K. Wagner [MVP]

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').
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top