Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: mput problem with asp
mini71

From: vienna, Austria
Posts: 2
Member Since: 06/14/02
posted June 14, 2002 11:07 AM

hi,

i´m using mput with vbsript to upload some files.
everything works fine until i set the options FilesTransferred, FileErrors of mget.
The following error occurs:
Dart.Ftp.1 error '800a2ee3'

Parameter 3 of the method used is invalid or not appropriate.

The script is taken out of the help file (mput examples).

What´s wrong?

Michael
Jon Belanger



From: Rome, NY USA
Posts: 310
Member Since: 06/10/02
posted June 14, 2002 1:59 PM

Michael,
 
   I was able to reproduce your problem, and we found a solution for it. Basically, when you pass the two dartstring objects in to mput you are passing them as reference. If you put parenthesis around them like this

ftp1.mput "sfsad","~",(myFiles),(myErrors)

  You will be passing them in as values. The objects will come back populated. You can also pass them in as session variables (since session variables are passed by value) like this:

set Session("myFiles") = Server.CreateObject("Dart.DartStrings")
set Session("myErrors") = Server.CreateObject("Dart.DartStrings")

Then call mput like this:

ftp1.mput "sfsad","~",Session("myFiles"),Session("myErrors")

Hope that helps, let me know if you have further problems.

J. Belanger


mini71

From: vienna, Austria
Posts: 2
Member Since: 06/14/02
posted June 17, 2002 5:21 AM

It works!

Thanks for help,
Michael
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX