JeffvClayton
asked on
Read Write
I have an Access MDB file on a install disc which my install program copies to the users computer. Trouble is after its copied it ends up as Read only. What is the code for changing it to Read/Write
To remove an attribute use System.IO.File.SetAttribut es. Ex:
if(File.GetAttributes(save dCardFileP ath) == FileAttributes.ReadOnly)
File.SetAttributes(savedCa rdFilePath , FileAttributes.Normal);
if(File.GetAttributes(save
File.SetAttributes(savedCa
ASKER
DHaest,
can you translate the above code to VB.Net?
can you translate the above code to VB.Net?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I alread tries that but GetAttributes is not a property of System.IO.FileInfo
ASKER
Sorry I already used the word File as a System.IO.FileInfo variable
ASKER
If IO.File.GetAttributes(MyFi le) = IO.FileAttributes.ReadOnly Then
IO.File.SetAttributes(MyFi le, IO.FileAttributes.Normal)
End If
IO.File.SetAttributes(MyFi
End If
Open in new window