public static bool TakeOwnership(string file) { if (VmcStudioUtil.Execute("takeown", "/f \"" + file + "\"") && VmcStudioUtil.Execute("icacls", "\"" + file + "\" /grant *S-1-5-32-545:F")) { return(VmcStudioUtil.Execute("icacls", "\"" + file + "\" /grant *S-1-5-32-544:F")); } else { return(false); } }