gQuery simple changes
This commit is contained in:
@@ -29,9 +29,9 @@ namespace quickftp
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string path = quickftp.Properties.Settings.Default.AdvantagePath;
|
||||
string user = quickftp.Properties.Settings.Default.AdvantageUser;
|
||||
string pass = quickftp.Properties.Settings.Default.AdvantagePass;
|
||||
string path = gQuery.Properties.Settings.Default.AdvantagePath;
|
||||
string user = gQuery.Properties.Settings.Default.AdvantageUser;
|
||||
string pass = gQuery.Properties.Settings.Default.AdvantagePass;
|
||||
string fpath = AssemblyW.SpecializedAssemblyInfo.GetAssemblyPath(AssemblyW.AssemblyST.Executing);
|
||||
string fname = DateTime.Now.ToShortDateString().Replace('/', '_');
|
||||
|
||||
@@ -93,8 +93,7 @@ namespace quickftp
|
||||
Console.WriteLine(e.Message);
|
||||
}
|
||||
|
||||
SendFileToSFTP(fpath + "\\" + fname + ".csv");
|
||||
|
||||
|
||||
Process.GetCurrentProcess().Close();
|
||||
}
|
||||
|
||||
@@ -117,45 +116,7 @@ namespace quickftp
|
||||
return "";
|
||||
}
|
||||
|
||||
public static void SendFileToSFTP(string fileNameNPath)
|
||||
{
|
||||
string regValue = RegKey.GetKey<string>(HKEYRoot.LocalMachine, "Software\\PanaceanTech", "SMFTP", "").ToLower();
|
||||
|
||||
if (!regValue.Contains("d") && !regValue.Contains("i") && !regValue.Contains("c") && !regValue.Contains("k") && !regValue.Contains("s"))
|
||||
{
|
||||
Console.WriteLine("Not Registered - Unlicensed");
|
||||
return;
|
||||
}
|
||||
|
||||
using (SMFTP.SFTPClient client = new SMFTP.SFTPClient())
|
||||
{
|
||||
//bool bConnected = client.Connect("secureftp.navicure.com", "5S3F054P", "LPM2055");
|
||||
bool bConnected = client.Connect("ftp.eresourceplanner.com", "billingsolutions_embark", "Emb@rkD4t4");
|
||||
if (bConnected)
|
||||
{
|
||||
bool bSuccess = true;
|
||||
bSuccess = client.CmdExe_MPutFiles(String.Format("\"{0}\"", fileNameNPath));
|
||||
Console.WriteLine(String.Format("File Send : {0}", bSuccess));
|
||||
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExec_RemoteDirExists("out/997");
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExec_LocalDirSet("c:\\out", true);
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExe_MGetDir(true, "out/997");
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExec_RemoteDirSet("in");
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExec_LocalDirSet("c:\\out\\997", true);
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExe_MPutFiles("\"C:\\out\\Doris day\\EmptyDummy File.txt\"");
|
||||
//if (bSuccess)
|
||||
// bSuccess = client.CmdExe_MDelFiles("*.997");
|
||||
if (bSuccess)
|
||||
File.Delete(fileNameNPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
2
QuickFTP/gQuery/Properties/Settings.Designer.cs
generated
2
QuickFTP/gQuery/Properties/Settings.Designer.cs
generated
@@ -8,7 +8,7 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace quickftp.Properties {
|
||||
namespace gQuery.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="quickftp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
<section name="gQuery.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
|
||||
Binary file not shown.
BIN
QuickFTP/gQuery/bin/Debug/gQuery.exe
Normal file
BIN
QuickFTP/gQuery/bin/Debug/gQuery.exe
Normal file
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="quickftp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
<section name="gQuery.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
BIN
QuickFTP/gQuery/bin/Debug/gQuery.pdb
Normal file
BIN
QuickFTP/gQuery/bin/Debug/gQuery.pdb
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="quickftp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
<quickftp.Properties.Settings>
|
||||
<setting name="AdvantagePath" serializeAs="String">
|
||||
<value>\\medisoft_server\medidata\EMBARK RECOVERY LLC\mwddf.add</value>
|
||||
</setting>
|
||||
<setting name="AdvantageUser" serializeAs="String">
|
||||
<value>user</value>
|
||||
</setting>
|
||||
<setting name="AdvantagePass" serializeAs="String">
|
||||
<value>password</value>
|
||||
</setting>
|
||||
</quickftp.Properties.Settings>
|
||||
</userSettings>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="quickftp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
<quickftp.Properties.Settings>
|
||||
<setting name="AdvantagePath" serializeAs="String">
|
||||
<value>\\medisoft_server\medidata\EMBARK RECOVERY LLC\mwddf.add</value>
|
||||
</setting>
|
||||
<setting name="AdvantageUser" serializeAs="String">
|
||||
<value>user</value>
|
||||
</setting>
|
||||
<setting name="AdvantagePass" serializeAs="String">
|
||||
<value>password</value>
|
||||
</setting>
|
||||
</quickftp.Properties.Settings>
|
||||
</userSettings>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<section name="quickftp.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<userSettings>
|
||||
<quickftp.Properties.Settings>
|
||||
<setting name="AdvantagePath" serializeAs="String">
|
||||
<value>\\medisoft_server\medidata\EMBARK RECOVERY LLC\mwddf.add</value>
|
||||
</setting>
|
||||
<setting name="AdvantageUser" serializeAs="String">
|
||||
<value>user</value>
|
||||
</setting>
|
||||
<setting name="AdvantagePass" serializeAs="String">
|
||||
<value>password</value>
|
||||
</setting>
|
||||
</quickftp.Properties.Settings>
|
||||
</userSettings>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
@@ -7,8 +7,8 @@
|
||||
<ProjectGuid>{35187E28-CF64-4B0F-AADE-355B5561393C}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>quickftp</RootNamespace>
|
||||
<AssemblyName>quickftp</AssemblyName>
|
||||
<RootNamespace>gQuery</RootNamespace>
|
||||
<AssemblyName>gQuery</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
|
||||
10
QuickFTP/gQuery/obj/Debug/gQuery.csproj.FileListAbsolute.txt
Normal file
10
QuickFTP/gQuery/obj/Debug/gQuery.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\obj\Debug\gQuery.csprojResolveAssemblyReference.cache
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\gQuery.exe.config
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\gQuery.exe
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\gQuery.pdb
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\log4net.dll
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\Sdaleo.dll
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\Yaulw.dll
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\bin\Debug\Advantage.Data.Provider.dll
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\obj\Debug\gQuery.exe
|
||||
C:\Users\DieSonne99\Desktop\panaceantech\QuickFTP\gQuery\obj\Debug\gQuery.pdb
|
||||
Binary file not shown.
BIN
QuickFTP/gQuery/obj/Debug/gQuery.exe
Normal file
BIN
QuickFTP/gQuery/obj/Debug/gQuery.exe
Normal file
Binary file not shown.
BIN
QuickFTP/gQuery/obj/Debug/gQuery.pdb
Normal file
BIN
QuickFTP/gQuery/obj/Debug/gQuery.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user