protected static void mountAllEncryptedPartitions() { string keyfile = Engine.GetShortPath(SeapClient.GetKeyfile()); if (File.Exists(keyfile)) { string command = getDCCon() + @" -mountall -p mydlp -kf " + keyfile; ExecuteParameters eparams = new ExecuteParameters(command, "DC mountall"); ProcessControl.CommandOutputSync(eparams); File.Delete(keyfile); } }
protected static void formatPartition(string partitionId, string fsType) { string keyfile = Engine.GetShortPath(SeapClient.GetKeyfile()); if (File.Exists(keyfile)) { string command = getDCCon() + @" -format " + partitionId + " -q -" + fsType + " -a -p mydlp -kf " + keyfile; ExecuteParameters eparams = new ExecuteParameters(command, "DC format"); ProcessControl.CommandOutputSync(eparams); File.Delete(keyfile); } }