I had used a console app which allowed me to change the file name. Below is the code snippet of the console app
public static void UpdateConfigs()
{
var filesWithPath = DirSearch(@"C:\path\to\app config folder\Include");
string[] configNames = File.ReadAllLines(@"C:\Users\username\Desktop\Enable Configs.txt");
var counter = 0;
foreach (var configName in configNames)
{
if (filesWithPath.ContainsKey(configName))
{
Console.WriteLine($"Changing {configName}");
File.Move(filesWithPath[configName], Path.ChangeExtension(filesWithPath[configName], ".disabled"));
counter++;
}
}
Console.WriteLine();
Console.WriteLine($"Total: {counter}");
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
private static Dictionary<string, string> DirSearch(string sDir)
{
var files = new Dictionary<string, string>();
foreach (string f in Directory.GetFiles(sDir))
{
files.Add(Path.GetFileName(f), f);
}
foreach (string d in Directory.GetDirectories(sDir))
{
DirSearch(d);
}
return files;
}
The Enable Config is only 1 column. You just need to copy all the names from the header Config file name. Below is an example of the text file entries

You just need to update the .disabled
. Follow the below steps
If you are disabling configs, filter the excel sheet and set it to disabled.
Copy the names from the Config file name and paste it into the text file.
Execute the code.
Note
You need to change the .disabled
to blank if you need to enable the config file.