> Am 23.01.2020 um 22:16 schrieb Walter Purvis <wpur...@gmail.com>:
>
> I see the WindowsFileInfoMBS for reading attributes, but is there a way to
> set them? Specifically, I'm looking to set the hidden and system flags, the
> way I would in the shell with attrib +h +s *filepath*.
You may just need a declare to SetFileAttributesW function.
I don't have this in the plugin.
Like this maybe:
Declare Function SetFileAttributes Lib "kernel32.dll" Alias
"SetFileAttributesW" (lpFileName As WString, dwFileAttributes As UInt32) As
Boolean
const FILE_ATTRIBUTE_HIDDEN = 2
const FILE_ATTRIBUTE_SYSTEM = 4
SetFileAttributesW(file.NativePath, FILE_ATTRIBUTE_HIDDEN +
FILE_ATTRIBUTE_SYSTEM)
Sincerely
Christian
--
Read our blog about news on our plugins:
http://www.mbsplugins.de/
_______________________________________________
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info