# File_RemoveFileAttributes

> Removes specified attributes on file.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/file-functions/file-removefileattributes/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

#### Description

Removes specified attributes on file

### Syntax

File_RemoveFileAttributes(sFile, iAttribute) As Boolean

### Parameters

#### sFile (String)

Filename

#### iAttribute (Integer)

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) to remove

### Example

**VBScript**

```vb
If bStatus Then bStatus = File_RemoveFileAttributes("C:\CapaInstaller.txt", FILE_READONLY)
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[File_SetFileAttributes](/capainstaller/vb-scripting-library/file-functions/file-setfileattributes/) [File_SetTreeAttributes](/capainstaller/vb-scripting-library/file-functions/file-settreeattributes/)
