File copy/move permission

Q) i need to move the file from source to destination. which is having read only permission in source folder after moving the file in the destination it stills have the read only permission which i want to change.i am trying this in ui path studio.can anyone help me in this?
Next i tried this the Vb code but it is giving error like inaccessable due to its protection level.
Dim currentUser As String = System.Security.Principal.WindowsIdentity.GetCurrent().Name
Dim fSecurity As System.Security.AccessControl.FileSecurity= File.GetAccessControl(filePath)
FileSystemAccessRule(currentUser,FileSystemRights.FullControl,AccessControlType.Allow))
File.SetAccessControl(filePath,fSecurity)]

Make your automation right-click the file, go into properties, and make it not read only.

yes i understand this will make the ui automation.is it possible in a background automation?

Sorry, I don’t know. I haven’t worked with background automations.

I wonder if you could use Start Process to run the Windows “attrib” command:

thanks