checking in latest panaceantech into git

This commit is contained in:
2016-08-12 16:07:22 -04:00
parent f38dafb4ae
commit bd0d466f36
38 changed files with 377 additions and 562 deletions

View File

@@ -11,24 +11,41 @@ using System.Linq;
using System.Text;
using Yaulw.Assembly;
using Yaulw.File;
using Yaulw.Other;
using Yaulw.Registry;
namespace quickftp
{
class Program
{
public enum CommandLine_Flag
{
DEBUG
}
public enum CommandLine_Option
{
NONE
}
internal static CMDline cmdline = new CMDline(typeof(Program.CommandLine_Option), typeof(Program.CommandLine_Flag));
public static string DataRet_Retrieve(object o)
{
if(o != null && !String.IsNullOrEmpty(o.ToString()))
{
return o.ToString().Trim();
return o.ToString().Trim().Replace(',',' ');
}
return "";
}
static void Main(string[] args)
{
cmdline.Parse(args);
bool bIsDebug = cmdline.GetFlagValue(CommandLine_Flag.DEBUG);
string path = quickftp.Properties.Settings.Default.AdvantagePath;
string user = quickftp.Properties.Settings.Default.AdvantageUser;
string pass = quickftp.Properties.Settings.Default.AdvantagePass;
@@ -93,7 +110,10 @@ namespace quickftp
Console.WriteLine(e.Message);
}
SendFileToSFTP(fpath + "\\" + fname + ".csv");
if (!bIsDebug)
{
SendFileToSFTP(fpath + "\\" + fname + ".csv");
}
Process.GetCurrentProcess().Close();
}