473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

No one Find Directory created by me...

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\di rection")
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
Nov 21 '05 #1
4 1040
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
Nov 21 '05 #2
if u want to hide directory to prevent user access to drive....u can
add password too.

Husam wrote:
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\di rection")
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


Nov 21 '05 #3
"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\di rection")
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/>

Nov 21 '05 #4
thank :-) i didn't know that "IsolatedStorage.IsolatedStorageFile'"

Herfried K. Wagner [MVP] wrote:
"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\di rection")
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').


Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Xah Lee | last post by:
suppose you want to do find & replace of string of all files in a directory. here's the code: ©# -*- coding: utf-8 -*- ©# Python © ©import os,sys © ©mydir= '/Users/t/web'
1
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then...
5
by: Li Pang | last post by:
Hi, I made a MSI to deploy a service, and it worked well. I added a custom action to create a sub-folder after the installation commit phase, but it return a message "Could not find file...
2
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then...
1
by: mrpknd57 | last post by:
Hi, I am new to Access/VBA can anyone help? I have a form with a button that runs a macro. I have been using the TransferText action within the macro to import a text file, from a specific...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.