通常为了安全起见,必须将分享资料夹的NTFS安全性设为users或everyone仅唯读不允修改写入,然而在执行程式时却又必须依程式系统的帐号权限来写入。这要如何做到呢? 本文分享作法。
(Usually for security reasons, we must set network shared-folder’s NTFS security to read-only for normal users or everyone . But at the same time , the folder also needed by writting by some programs . What would we do it ? This article is showing the practice.)
本文分享C++达成的做法。下图为实例应用: 在PDM系统将品号图片汇入PDM时也同步汇入ERP。使用者的PDM权限是可增删改品号资料,但其对ERP主机资料夹并无写入权限。
( 获取网芳资料夹安全性的管理者权限本文 )