| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Calling Remote Commands Using ASP |
| LBH From: Hign Wycombe, United Kingdom Posts: 5 Member Since: 08/26/04 |
posted August 26, 2004 6:14 AM I am trying to call a remote command on an IBM AS400 and whenever I try I get the following error: 'Error received Error Type: Dart.Ftp.1 (0x800A2EE2) Parameter 2 of the method used is invalid or not appropriate. A sample of the code I am using: 'Login etc.. FileToSend = "XUKLEXCM99.VORV" strPath= "D:\InetPub\wwwroot\BatchVOR\Transfer\VORV20" Ftp.Store FileToSend, strPath CommandToCall = "rcmd cmnlib/sbmrmtord file(XUKLEXCM99) mbr(VORV)" Dim ResultValue Ftp.Command CommandToCall, ResultValue Response.Write ResultValue I have been using this method in VB for years and it has worked fine but now converting my application to ASP I get the above error. If I comment out the command line the code does transmit the file. Any ideas? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 26, 2004 8:48 AM What line does the error occur on? What is parameter 2? |
| LBH From: Hign Wycombe, United Kingdom Posts: 5 Member Since: 08/26/04 |
posted August 26, 2004 9:16 AM The error occurs on: Ftp.Command CommandToCall, ResultValue I guess the parameter is ResultValue |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted August 26, 2004 9:20 AM We are expecting a string, but you are passing a variant. If you initialize it to an empty string it should work. |
| LBH From: Hign Wycombe, United Kingdom Posts: 5 Member Since: 08/26/04 |
posted August 26, 2004 9:34 AM This worked fine. Thx |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|