checking in all the old panacean stuff

This commit is contained in:
2016-07-25 15:42:39 -04:00
parent c996cdd81f
commit 8fd9e44ae5
1210 changed files with 220657 additions and 0 deletions

View File

@@ -0,0 +1,150 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.IO;
using System.Reflection;
namespace psftp_cs
{
class Program
{
static void Main(string[] args)
{
Assembly sftpasm = Assembly.LoadFile(@"C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\SMFTP\bin\Debug\SMFTP.dll");
if (sftpasm != null)
{
Type t = sftpasm.GetType("SMFTP.SFTPClient");
object o = Activator.CreateInstance(t);
BindingFlags bindings = BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Instance;
object[] prms =null;
prms = new object[]{"secureftp.navicure.com", "5S3F054P", "LPM2055", "22"};
bool bSuccess = (bool) t.InvokeMember("Connect", bindings, null, o, prms);
if(bSuccess)
{
prms = new object[] { "out/997" };
bSuccess = (bool)t.InvokeMember("CmdExec_RemoteDirExists", bindings, null, o, prms);
}
if (bSuccess)
{
prms = new object[] { "c:\\out", true };
bSuccess = (bool)t.InvokeMember("CmdExec_LocalDirSet", bindings, null, o, prms);
}
if (bSuccess)
{
prms = new object[] { true, "out/997" };
bSuccess = (bool)t.InvokeMember("CmdExe_MGetDir", bindings, null, o, prms);
}
if (bSuccess)
{
prms = new object[] { "in" };
bSuccess = (bool)t.InvokeMember("CmdExec_RemoteDirSet", bindings, null, o, prms);
}
if (bSuccess)
{
prms = new object[] { "c:\\out\\997", true };
bSuccess = (bool)t.InvokeMember("CmdExec_LocalDirSet", bindings, null, o, prms);
}
if (bSuccess)
{
prms = new object[] { "*.997" };
bSuccess = (bool)t.InvokeMember("CmdExe_MPutFiles", bindings, null, o, prms);
}
if (bSuccess)
{
prms = new object[] { "*.997" };
bSuccess = (bool)t.InvokeMember("CmdExe_MDelFiles", bindings, null, o, prms);
}
}
//Dim sftpasm As Assembly = Assembly.LoadFile("C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\SMFTP\bin\Debug\SMFTP.dll")
//If sftpasm IsNot Nothing Then
// Dim t As Type = sftpasm.[GetType]("SMFTP.SFTPClient")
// Dim o As Object = Activator.CreateInstance(t)
// Dim bindings As BindingFlags = BindingFlags.InvokeMethod Or BindingFlags.[Public] Or BindingFlags.Instance
// Dim prms As Object() = Nothing
// prms = New Object() {"secureftp.navicure.com", "5S3F054P", "LPM2055", "22"}
// Dim bSuccess As Boolean = CBool(t.InvokeMember("Connect", bindings, Nothing, o, prms))
// If bSuccess Then
// prms = New Object() {"out/997"}
// bSuccess = CBool(t.InvokeMember("CmdExec_RemoteDirExists", bindings, Nothing, o, prms))
// End If
// If bSuccess Then
// prms = New Object() {"c:\out", True}
// bSuccess = CBool(t.InvokeMember("CmdExec_LocalDirSet", bindings, Nothing, o, prms))
// End If
// If bSuccess Then
// prms = New Object() {True, "out/997"}
// bSuccess = CBool(t.InvokeMember("CmdExe_MGetDir", bindings, Nothing, o, prms))
// End If
// If bSuccess Then
// prms = New Object() {"in"}
// bSuccess = CBool(t.InvokeMember("CmdExec_RemoteDirSet", bindings, Nothing, o, prms))
// End If
// If bSuccess Then
// prms = New Object() {"c:\out\997", True}
// bSuccess = CBool(t.InvokeMember("CmdExec_LocalDirSet", bindings, Nothing, o, prms))
// End If
// If bSuccess Then
// prms = New Object() {"*.997"}
// bSuccess = CBool(t.InvokeMember("CmdExe_MPutFiles", bindings, Nothing, o, prms))
// End If
// If bSuccess Then
// prms = New Object() {"*.997"}
// bSuccess = CBool(t.InvokeMember("CmdExe_MDelFiles", bindings, Nothing, o, prms))
// End If
//End If
//using (SMFTP.SFTPClient client = new SMFTP.SFTPClient())
//{
// bool bConnected = client.Connect("secureftp.navicure.com", "5S3F054P", "LPM2055");
// if (bConnected)
// {
// bool 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("*.997");
// if (bSuccess)
// bSuccess = client.CmdExe_MDelFiles("*.997");
// }
//}
// Using client As New SMFTP.SFTPClient()
// Dim bConnected As Boolean = client.Connect("secureftp.navicure.com", "5S3F054P", "LPM2055")
// If bConnected Then
// Dim bSuccess As Boolean = client.CmdExec_RemoteDirExists("out/997")
// If bSuccess Then
// bSuccess = client.CmdExec_LocalDirSet("c:\out", True)
// End If
// If bSuccess Then
// bSuccess = client.CmdExe_MGetDir(True, "out/997")
// End If
// If bSuccess Then
// bSuccess = client.CmdExec_RemoteDirSet("in")
// End If
// If bSuccess Then
// bSuccess = client.CmdExec_LocalDirSet("c:\out\997", True)
// End If
// If bSuccess Then
// bSuccess = client.CmdExe_MPutFiles("*.997")
// End If
// If bSuccess Then
// bSuccess = client.CmdExe_MDelFiles("*.997")
// End If
// End If
//End Using
}
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("psftp_cs")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("psftp_cs")]
[assembly: AssemblyCopyright("Copyright © 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f3085506-cab3-4ed7-92bc-360f5b7d5036")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,11 @@
<?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>

View File

@@ -0,0 +1,7 @@
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\bin\Debug\psftp_cs.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\bin\Debug\psftp_cs.pdb
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\obj\x86\Debug\ResolveAssemblyReference.cache
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\obj\x86\Debug\psftp_cs.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\obj\x86\Debug\psftp_cs.pdb
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\WINDOWS\MSVC\PSFTP\Debug\psftp_cs.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\WINDOWS\MSVC\PSFTP\Debug\psftp_cs.pdb

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,7 @@
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\WINDOWS\MSVC\PSFTP\Release\psftp_cs.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\WINDOWS\MSVC\PSFTP\Release\psftp_cs.pdb
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\obj\x86\Release\ResolveAssemblyReference.cache
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\obj\x86\Release\psftp_cs.exe
C:\Users\Administrator\Documents\Visual Studio 2010\Projects\puttysrc\psftp_cs\obj\x86\Release\psftp_cs.pdb
C:\_ROOT_ (ActiveDev)\puttysrc\psftp_cs\obj\x86\Release\psftp_cs.exe
C:\_ROOT_ (ActiveDev)\puttysrc\psftp_cs\obj\x86\Release\psftp_cs.pdb

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3CABDA87-BB56-4683-A7FC-51F06C4981BA}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>psftp_cs</RootNamespace>
<AssemblyName>psftp_cs</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\WINDOWS\MSVC\PSFTP\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\WINDOWS\MSVC\PSFTP\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<EnableUnmanagedDebugging>true</EnableUnmanagedDebugging>
</PropertyGroup>
</Project>