private static string GetDriverPhysicalPath() { try { var operationType = DeletePartitionParas.GetCurrentOsType().ToString(); var rootPath = AppDomain.CurrentDomain.BaseDirectory; var curBitProcess = DeletePartitionParas.GetCurBitPrcoss().ToString(); var physicalPath = System.IO.Path.Combine(rootPath, "XlyDeleteWriteProtectNew", curBitProcess, operationType, "XlyDiskSecureWrite.sys"); return(physicalPath); } catch (Exception ex) { LogHelper.Error("获取删除分区保护的驱动文件失败:", ex); return(string.Empty); } }