login about faq

Hi Guys

So here is my strange bizarre problem.

I'm using VB.net 2012 with Chilkat 9.5, 32 bit

I'm sending -- tif -- files to my client FTP server.

I used mputfile function.

My problem is: ONLY Files starting with the letters PL dont pass (e.a. PL12345.tif).

If I change the name of the files it's delivered .

I try to pass it with the function putfile one by one, some time it pass most of the time it dont (1 in 10)

Put a thread sleep, sending messages to delay execution ...

Only the files that start with the letters PL don't pass

If I transfer thru FileZilla all files passes.

Help.

asked Feb 27 '15 at 09:57

MAJIKONE's gravatar image

MAJIKONE
1


Show your command, also get a detail log,

Does the file already exist on server??? ie replace vs add?

link

answered Feb 27 '15 at 10:44

cdlvj130's gravatar image

cdlvj130
9691017

So this is my last version:

Dim IOFolder As New IO.DirectoryInfo(stringLocalDirectory)

If IOFolder.GetFiles.Length > 0 Then

Dim IOFilesList As IO.FileInfo() = IOFolder.GetFiles()

For Each stringFTPFilter In ArrayFilter

  For Each IOFile As IO.FileInfo In IOFilesList

    If IOFile.Extension = Right(stringFTPFilter, Len(stringFTPFilter) - 1) Then

      mymessage += IntegerFileCount & " - " & IOFile.ToString() & vbCrLf

      IntegerFileCount += ChilkatFtpClient.PutFile(stringLocalDirectory & IOFile.ToString(), IOFile.ToString())

      System.Threading.Thread.Sleep(3000)

      mymessage += IntegerFileCount & " - " & IOFile.ToString() & vbCrLf

     End If

   Next

 Next

End If

I'm always adding, making sure that the files don't exist in the Destination.

My original coding was :

IntegerFileCount += ChilkatFtpClient.MPutFiles(stringLocalDirectory & stringFileExtension)

Which detail log are talking about???

Thnaks

link

answered Feb 27 '15 at 11:04

MAJIKONE's gravatar image

MAJIKONE
1

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×9
×5

Asked: Feb 27 '15 at 09:57

Seen: 845 times

Last updated: Feb 27 '15 at 11:04

powered by OSQA