Guidance
指路人
g.yi.org
software / rapidq / Examples / File & Directory / attrib.bas

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
' Set a file's attribute

     CONST FILE_ATTRIBUTE_ARCHIVE = &H20
     CONST FILE_ATTRIBUTE_COMPRESSED = &H800
     CONST FILE_ATTRIBUTE_DIRECTORY = &H10
     CONST FILE_ATTRIBUTE_HIDDEN = &H2
     CONST FILE_ATTRIBUTE_NORMAL = &H80
     CONST FILE_ATTRIBUTE_READONLY = &H1
     CONST FILE_ATTRIBUTE_SYSTEM = &H4
     CONST FILE_ATTRIBUTE_TEMPORARY = &H100

     DECLARE FUNCTION Attrib LIB "KERNEL32" ALIAS "SetFileAttributesA" _
      (lpFileName AS STRING, dwFileAttributes AS DWORD) AS LONG


     ATTRIB "T.BAS", FILE_ATTRIBUTE_ARCHIVE OR FILE_ATTRIBUTE_NORMAL
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2023-1-27  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2002-07-13 08:05:18