Added copyright and proprietary statement. Added <docname> was successfully created.

This commit is contained in:
John Jenko 2015-06-16 20:16:05 +00:00
parent 0f347f27cc
commit dc686ab082

View File

@ -29,6 +29,8 @@ namespace PromsGetDoc
Console.WriteLine("Need 4 arguments: DocId, Output File/Path, Server Name, Database Name");
return;
}
Console.WriteLine("Volian Enterprises Proprietary Software - Copyright 2015 \r\n\n" +
"To be used under the Volian PROMS End User License Agreement (EULA).\r\n\nFor AP-1000 Westinghouse internal use only.\r\n");
byte[] doc = null;
int _docId = int.Parse(args[0]);
string connectionStr = string.Format(@"Data Source={0};Initial Catalog={1};Integrated Security=True", args[2], args[3]);
@ -68,6 +70,7 @@ namespace PromsGetDoc
FileStream fs = fi.Create();
fs.Write(doc, 0, doc.Length);
fs.Close();
Console.WriteLine("{0} was successfully created.", fi.FullName);
}
catch (Exception ex1)
{