J
Jim
I have the following piece of code:
Directory.CreateDirectory(myDir);
DirectoryInfo lDir = new DirectoryInfo(myDir);
lDir.Attributes = FileAttributes.Normal;
When this code runs, my directory is created fine, but my directory is
always read only. At first I thought it was something with using
DirectoryInfo. However, I also ran the following line of code:
Directory.CreateDirectory(myDir);
Immediately after running this line of code, my directory was created, and
then I went and manually tried to change the attributes of the directory so
that it was not read only. Even after I tried to set it manually, it would
always be read only. I never received back an error after I pushed OK on
the directory properties after unchecking read only, but every time I go
back to the properties of the folder it is always read only?
This is running on Windows Vista. Any ideas why?
Thanks,
-- Jim
Directory.CreateDirectory(myDir);
DirectoryInfo lDir = new DirectoryInfo(myDir);
lDir.Attributes = FileAttributes.Normal;
When this code runs, my directory is created fine, but my directory is
always read only. At first I thought it was something with using
DirectoryInfo. However, I also ran the following line of code:
Directory.CreateDirectory(myDir);
Immediately after running this line of code, my directory was created, and
then I went and manually tried to change the attributes of the directory so
that it was not read only. Even after I tried to set it manually, it would
always be read only. I never received back an error after I pushed OK on
the directory properties after unchecking read only, but every time I go
back to the properties of the folder it is always read only?
This is running on Windows Vista. Any ideas why?
Thanks,
-- Jim