看板 Visual_Basic 關於我們 聯絡資訊
小弟最近參考一個更改file property的程式 http://stackoverflow.com/questions/750679/how-do-you-make-a-file-writeable-in- vb Dim fso As New FileSystemObject Dim fil As File Set fil = fso.GetFile("C:\foo.txt") If (fil.attributes And vbReadOnly) Then fil.attributes = fil.attributes -vbReadOnly End If 小弟watch fil.attributes =32 如果是唯讀的檔案 但是為什麼 32 and 1 =0 ? 請問在這裡and的作用 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.255.25.29 ※ 文章網址: http://www.ptt.cc/bbs/Visual_Basic/M.1418650853.A.446.html
LPH66: 這是 bitwise and 12/15 22:07