win10下,如何通过VFP代码更改文件的属性
各位大侠,win10下,如何通过VFP代码更改文件的属性(如只读、隐藏、系统等),谢谢![此贴子已经被作者于2022-1-11 14:41编辑过]
[此贴子已经被作者于2022-1-11 14:41编辑过]
2022-01-11 14:17
2022-01-11 16:04
2022-01-11 19:57
2022-01-12 08:41
程序代码:DECLARE long SetFileAttributes IN Kernel32 string@,long
? fun("c:\temp\tmp.txt",1)
*? fun("c:\temp\tmp.txt",128)
FUNCTION fun(cFileName,nFileAttributes)
RETURN SetFileAttributes(cFileName,nFileAttributes)!=0
ENDFUNC
2022-01-12 11:22
2022-01-12 12:39