login about faq

http://www.example-code.com/vbnet/sftp_changeDirectory.asp - On reading this link. I can understand that File folder will work different for sftp. But i have to Copy or Cut the file from Root directory to the given folder path.

Do sftp support Copy File. I do know that they have sftp.RemoveFile property This works perfect.

success = sftp.RemoveFile(_fileName)
        If (success <> True) Then
            Exit Function
        End If

I need a MoveFile Property which can copy the file from the Root Directory and Paste in the given folder file path.

asked Sep 11 '14 at 15:52

chilldll's gravatar image


Maybe use OpenFile(), ReadFile...() and one of the WriteFile...() functions to "copy" it? Otherwise download and upload to another Folder.

Just an idea...


answered Sep 11 '14 at 15:57

RootTag's gravatar image


@RootTag, Thank you. What happens now is, ChilKat.sftp creates the file directly on the RootDirectory. That means, on the userfolder which is used for ftp log-in. We want the file to be created on the mentioned file path such as ftp:\serverfolderfoldersub_foldertest.csv

(Sep 11 '14 at 16:11) chilldll
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Sep 11 '14 at 15:52

Seen: 2,227 times

Last updated: Sep 11 '14 at 16:11

powered by OSQA