SetAttr Statement [Runtime]/text/sbasic/shared/03020414.xhpSun Microsystems, Inc.converted from old format - fpeSetAttr statementSetAttr Statement [Runtime]Sets the attribute information for a specified file.Syntax:SetAttr FileName As String, Attribute As IntegerParameters:FileName: Name of the file, including the path, that you want to test attributes of. If you do not enter a path, SetAttr searches for the file in the current directory. You can also use URL notation.Attribute: Bit pattern defining the attributes that you want to set or to clear:Value0 : Normal files.1 : Read-only files.32 : File was changed since last backup (Archive bit).You can set multiple attributes by combining the respective values with a logic OR statement.Example:Sub ExampleSetGetAttrOn Error Goto ErrorHandler REM Define target for error-handlerIf Dir("C:\test",16)="" Then MkDir "C:\test"If Dir("C:\test\autoexec.sav")="" THEN Filecopy "c:\autoexec.bat", "c:\test\autoexec.sav"SetAttr "c:\test\autoexec.sav" ,0Filecopy "c:\autoexec.bat", "c:\test\autoexec.sav"SetAttr "c:\test\autoexec.sav" ,1print GetAttr( "c:\test\autoexec.sav" )endErrorHandler:Print Errorendend sub