|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
I can create a new folder in C# in which I load files that are needed. The problem is, is that I need to make this folder have a System, Hidden attribute. The code that I'm using right now is as follows...
foreach (string s in Directory.GetLogicalDrives()) { ... Find the drive I'm looking for ... DirectoryInfo r = new DirectoryInfo(s); r.CreateSubdirectory("MyFolder"); } I would appreciate any help. Thank you. Eric ![]() |
|
#2
|
||||
|
||||
|
if you use a FileSystemWatcher object, then you can set the permissions for a given directory. it has a NotifyFilters property that allows you to set attributes for the directory.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Creating a folder in C# |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|