Husam,
As the others suggest, you can set the DirectoryInfo.Attributes 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(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),
"windowsdll\win32app\direction")
Directory.CreateDirectory(directoryPath)
Dim info As New DirectoryInfo(directoryPath)
info.Attributes = FileAttributes.Hidden
Note Environment.SpecialFolder has a number of values that represent other
special folders such as the windows installation directory...
Hope this helps
Jay
"Husam" <(E-Mail Removed)> wrote in message
news:EB03631C-3238-4319-AF1C-(E-Mail Removed)...
> Hi EveryBody:
>
> I used vb.Net to creat the foolwoing directory:
>
> Directory.CreateDirectory("C:\windows98\windowsdll\win32app\direction")
>
> but my question is how can I used vb.net to hide the directory?
>
> any help will be appreciated
>
> regard's
>
> Husam
|