checking in latest panaceantech into git
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user