Can we adjust file properties through BlitzPlus?
For examples set cetern file readonly or hiden.
For examples set cetern file readonly or hiden.
.lib "Kernel32.dll" GetFileAttributes%(in_filename$):"GetFileAttributesA" SetFileAttributes%(in_filename$, in_attributes%):"SetFileAttributesA"
; Create a normal test file file = WriteFile("test.txt") WriteLine(file, "Testing...") CloseFile(file) ; See current file attributes Notify GetFileAttributes("test.txt") ; Change file attributes to hidden and readonly ;SetFileAttributes("test.txt", 3) ; Change file attributes to system only ;SetFileAttributes("test.txt", 4) ; Change file attributes to hidden, system, readonly ;SetFileAttributes("test.txt", 7) ; Change file attribute to hidden, archive ;SetFileAttributes("test.txt", 34) ; Change file attributes back to normal SetFileAttributes("test.txt", 128) ; See current file attributes Notify GetFileAttributes("test.txt")