Husam,
As the others suggest, you can set the DirectoryInfo.A ttributes to
FileAttributes. Hidden.
Rather then create a folder in what appears to be the Windows System
Directory, I would seriously suggest you consider using the "Program Files"
folder instead.
Something like:
Dim directoryPath As String
directoryPath =
Path.Combine(En vironment.GetFo lderPath(Enviro nment.SpecialFo lder.ProgramFil es),
"windowsdll\win 32app\direction ")
Directory.Creat eDirectory(dire ctoryPath)
Dim info As New DirectoryInfo(d irectoryPath)
info.Attributes = FileAttributes. Hidden
Note Environment.Spe cialFolder has a number of values that represent other
special folders such as the windows installation directory...
Hope this helps
Jay
"Husam" <Hu***@discussi ons.microsoft.c om> wrote in message
news:EB******** *************** ***********@mic rosoft.com...
Hi EveryBody:
I used vb.Net to creat the foolwoing directory:
Directory.Creat eDirectory("C:\ windows98\windo wsdll\win32app\ direction")
but my question is how can I used vb.net to hide the directory?
any help will be appreciated
regard's
Husam