Client is now determinded by the Document ID. I believe this should work for all the clients

This commit is contained in:
Dan Dembinski
2020-05-13 21:46:46 -04:00
parent 050bedac21
commit f68420dc94

View File

@@ -20,9 +20,9 @@ namespace orderRenamer
confirmation = args[0];
jobNumber = args[1];
client = args[2];
string orderNumber = confirmation.Split('-')[2];
client = confirmation.Split('-')[1];
XmlDocument doc = new XmlDocument();
@@ -46,6 +46,7 @@ namespace orderRenamer
try {
string[] filename = Directory.GetFiles(path).Where(f => f.Contains(orderNumber)).ToArray();
Console.WriteLine(client);
Console.WriteLine(path);
Console.WriteLine(filename[0].Split('\\').Last());