Custom Search

Thursday, March 26, 2009

Change the mode of the file Read only to Write

strApptEnterPath = "C:\Documents and settings\krao\Desktop\environment.xml"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = oFSO.GetFile(strApptEnterPath)
If objFile.Attributes AND 1 Then
objFile.Attributes = objFile.Attributes - 1
End If

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.