|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
No one Find Directory created by me...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 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 > >
Show quote
Hide quote
"Husam" <Hu***@discussions.microsoft.com> schrieb: Simply don't granz the user rights to access the directory.> 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 ? 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/> 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'). >
Only 2 Days left to get REALbasic 5.5 for FREE!
Execption Handling disection Data Relation question Dependency Error: The dependency <dll> in project <project> cannot be coppied to the run directory b Conversion from VB6 to VB.NET Architectural Question API calls in DotNet enum item from string Re: THE GREATEST NEWS EVER! °º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°`°º·._._.·º°` run file remotely Stepping into a referenced assembly |
|||||||||||||||||||||||