FILE_SetAttr

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > FILE: functions working on files >

FILE_SetAttr

 

Description

 

Set the file attribute(s) giving a file name.

 

Syntax

 

n = File_GetAttr(sFile, nAttribute)

 

Returns

 

Returns a number.

 

Parameters

 

Name

Type

Optional

Meaning

sFile

String

No

Full path to a file or directory name

nAttribute

Number

No

The attributes numeric flag.

Possible values to use for nAttribute:

%FILE_NORMAL

%FILE_READONLY

%FILE_HIDDEN

%FILE_SYSTEM

%FILE_ARCHIVE

 

Use OR operator to set multiple values like:

%FILE_SYSTEM OR %FILE_HIDDEN

 

Remarks

 

Restrictions

 

See also

 

Examples