Files Attributes

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Joël Roly.

Hi All

How to make to change the attributes of file?
I did not find of order PB
API SetFileAttributesA_(Nom$, Attrib) is refused
Thank you for the reseignements
Joël
(Programmeur amateur)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Paul.

Drop the "A"...

SetFileAttributes_(Nom$, Attrib)


Example:
SetFileAttributes_("Test.txt",#FILE_ATTRIBUTE_READONLY)


----------
Visit the PB Resources Site at http://www.reelmediaproductions.com/pb
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Joël Roly.

Hello Paul!
It is Ok
Thank you very much
Joël
Post Reply