Added copyright and proprietary statement. Added <docname> was successfully created.
This commit is contained in:
parent
0f347f27cc
commit
dc686ab082
@ -29,6 +29,8 @@ namespace PromsGetDoc
|
|||||||
Console.WriteLine("Need 4 arguments: DocId, Output File/Path, Server Name, Database Name");
|
Console.WriteLine("Need 4 arguments: DocId, Output File/Path, Server Name, Database Name");
|
||||||
return;
|
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;
|
byte[] doc = null;
|
||||||
int _docId = int.Parse(args[0]);
|
int _docId = int.Parse(args[0]);
|
||||||
string connectionStr = string.Format(@"Data Source={0};Initial Catalog={1};Integrated Security=True", args[2], args[3]);
|
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();
|
FileStream fs = fi.Create();
|
||||||
fs.Write(doc, 0, doc.Length);
|
fs.Write(doc, 0, doc.Length);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
|
Console.WriteLine("{0} was successfully created.", fi.FullName);
|
||||||
}
|
}
|
||||||
catch (Exception ex1)
|
catch (Exception ex1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user