利用 cacls 修改文件夹权限。网上有写个.BAT 然后调用的。我直接调用了 windows/system32/ cacls.exe. 方法是别人的, function ModifyDirPermission() STRING szMsgDir,szCmd, szCmdArgs; begin szMsgDir = TARGETDIR ^ "//MESSAGES"; szCmd = WINSYSDIR ^ "cmd.exe"; szCmdArgs = "/c cacls /"" + szMsgDir + "/" /T /E /G NETWORKSERVICE:F"; LaunchAppAndWait(szCmd, szCmdArgs, WAIT ); end;