How to use SFTP for SFTP server using VB6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RadhakrishnanR
    New Member
    • Aug 2006
    • 15

    How to use SFTP for SFTP server using VB6.0

    How i can implement SFTP in VB.

    Scenario is I want to take file from SFTP server, then after some process with the file , file will be moved to database..

    Our requirement is very clear that how to use SFTP in VB, currently we are using the OS-native FTP functionality, for SFTP there is no OS-native functionality. And we are not using any third party tool.

    In VB is it possible to accomplish this job.? If not could u give the reason.

    Thanks in Advance.....
    Radhakrishnan.
    vrradhakrishnan @gmail.com
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi there,

    what is the current platform of the SFTP server?

    Comment

    • RadhakrishnanR
      New Member
      • Aug 2006
      • 15

      #3
      Hi ,

      What is the current platform of the SFTP server?

      Anser to your question:

      SFTP server will be installed in windows platform....
      Can you reply me as early as possible.....

      Thanks
      Radhakrishnan

      Comment

      • RadhakrishnanR
        New Member
        • Aug 2006
        • 15

        #4
        Hi,

        Sorry, At present my client application is using FTP server on windows (os).
        Our client may install SFTP server either Windows or other plattform. So Plattform is not sure at the moment. could you reply on my initial post.

        I do not have any idea on this. please reply me ASAP.

        Thanks a lot
        Radhakrishnan

        Comment

        • debesh
          New Member
          • Oct 2007
          • 4

          #5
          Hi,

          I am trying to connect to sftp server using vb6. But I think sftp is not supported.All I need to do is connect to the sftp server and download some files.

          I know how to connect via ftp but the same process apparently is not working here.Would appreciate if anyone can help me in this regard.

          Thanks
          Debesh

          Comment

          • debesh
            New Member
            • Oct 2007
            • 4

            #6
            Originally posted by RadhakrishnanR
            Hi,

            Sorry, At present my client application is using FTP server on windows (os).
            Our client may install SFTP server either Windows or other plattform. So Plattform is not sure at the moment. could you reply on my initial post.

            I do not have any idea on this. please reply me ASAP.

            Thanks a lot
            Radhakrishnan
            Hi,

            I have been trying to create an appication that would connect sftp server and download some files for me.Can you help me on this?

            Thanks In Advance
            Debesh

            Comment

            • debesh
              New Member
              • Oct 2007
              • 4

              #7
              Originally posted by sashi
              Hi there,

              what is the current platform of the SFTP server?
              Hi Sashi,

              I am trying to create a vb6 application that would connect to sftp server and download some files for me. I know how to do it by ftp but that would not work here. Would appreciate if you can help me out on this.

              Thanks In Advance,
              Debesh

              Comment

              • debesh
                New Member
                • Oct 2007
                • 4

                #8
                Sftp

                Hi,


                I was grappling with this problem of connecting to the sftp server and then downloading some files from it. I had posted some time back asking for help, but i guess none had a good answer.So I thought might as well post the solution that I have found for this.

                I recommend downloading winscp.exe.Then from the command prompt you can call a file where in you can write the script.The example script is as follows:

                I had installed wnscp in program files. So I went to the installation folder from command prompt and typed the following:
                winscp.com /console /script=example. txt

                The following is how example.txt is like:
                ---------------------------------------------------------
                open sftp://user:password@i p address:port
                cd /<remote directory path>
                get filename <localpath>
                exit



                Thanks,
                Debesh
                Last edited by debesh; Nov 19 '07, 09:59 AM. Reason: Forgot to add something important

                Comment

                Working...