SetAttributes (UploadedFile object)

Dundas

SetAttributes (UploadedFile Object)

Call this method to change the attributes of a file which has been saved to disk.

Syntax

UploadedFileObject.SetAttributes (Attributes As Long)

The SetAttributes method syntax has the following part(s):

Part

Description

Attributes

A long which determines the file attributes to be set.

  Remarks

Calling this method will result in an exception being thrown if the file was saved to memory.

The attributes argument can have any of the following values or any logical combination of the following values:

Value

Description.

0

No attributes are set.

1

Read-only file.

2

Hidden file.

4

System file.

8

Disk drive volume label.

16

Folder or directory. Attribute is read-only.

32

File has changed since last backup (archive). Attribute is read/write.

64

Link or shortcut. Attribute is read-only.

128

Compressed file. Attribute is read-only.

 
See Also:
GetAttributes