Client is now determinded by the Document ID. I believe this should work for all the clients
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user