Hi
Does anyone know how to change a files properties. I need to change the read-only property on a file.
Cheers
IJ
Printable View
Hi
Does anyone know how to change a files properties. I need to change the read-only property on a file.
Cheers
IJ
Maybe this will help
there are some others attributes you can set too look in the MSDN - SetFileAttributesCode:Private Declare Function SetFileAttributes Lib "kernel32" Alias "SetFileAttributesA" (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long
Private Const FILE_ATTRIBUTE_NORMAL = &H80
Private Sub Form_Load()
Dim Tmp As Long
Tmp = SetFileAttributes("c:\FILENAME", FILE_ATTRIBUTE_NORMAL)
End Sub
WP
Brilliant,
Appreciate it.
IJ
;-)