- Updated solution to VS2026

- Disabled Excel interop
- Fixed maxDirDepth
This commit is contained in:
2026-05-27 11:06:50 +02:00
parent d5307f04a3
commit 207f7912ad
9 changed files with 95 additions and 9 deletions

View File

@@ -17,7 +17,7 @@ using System.Diagnostics;
using System.Globalization;
using System.Deployment;
using System.Reflection;
using Excel = Microsoft.Office.Interop.Excel;
//using Excel = Microsoft.Office.Interop.Excel;
namespace Permissions
{
@@ -30,7 +30,7 @@ namespace Permissions
string getUserInfo = "sAMAccountName"; // TODO: Make configurable through UI
string ignoreGroupNameBegin = "BUILTIN,LOCAL,NT AUTHORITY,SYSTEM,S-"; // TODO: Make configurable through UI
public static string startFolder = @""; // TODO: Obsolete, remove all references
int maxDirDepth = 5;
int maxDirDepth = 1;
// END CONFIGURATION
string groupNameStripBegin = Environment.UserDomainName + @"\";
@@ -631,6 +631,7 @@ namespace Permissions
}
}
/*
private void saveXLS(string savedFile)
{
CultureInfo oldCI = Thread.CurrentThread.CurrentCulture;
@@ -670,6 +671,7 @@ namespace Permissions
if (oldCI != null)
{ Thread.CurrentThread.CurrentCulture = oldCI; }
}
*/
private void saveCSV(string savedFile)
{
@@ -706,7 +708,7 @@ namespace Permissions
{ maxDirDept_plus = 1; }
maxDirDepth = maxDirDepth + maxDirDept_plus;
maxDirDepth = maxDirDept_plus;
updateDebugInfo("Max dir depth set to:" + maxDirDepth);
@@ -878,7 +880,7 @@ namespace Permissions
if (savedFile.EndsWith(".xls"))
{
updateDebugInfo("Saving as .xls file");
saveXLS(savedFile);
//saveXLS(savedFile);
}
else if (Path.GetExtension(savedFile).ToLower() == ".csv" || Path.GetExtension(savedFile).ToLower() == ".txt")
{