Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. FtpCommand Problem in VB6

FtpCommand Problem in VB6

Scheduled Pinned Locked Moved Visual Basic
helpquestionjson
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    hi i want to use the FtpCommand(API's function) with the command "Quote Site lrecl=80 recfm=fb" in VB6.but this FtpCommand function does not support this command and return an error with the subject of 500 INVALID COMMAND.i tried this function with other commands such as PWD,LS,GET,PUT but it also returns the same error,while this is the suggested function in MSDN for doing FTP.how can i use this function in my program specially with the command "Quote Site lrecl=80 recfm=fb"?i would be so happy if someone answers me.

    D 1 Reply Last reply
    0
    • L Lost User

      hi i want to use the FtpCommand(API's function) with the command "Quote Site lrecl=80 recfm=fb" in VB6.but this FtpCommand function does not support this command and return an error with the subject of 500 INVALID COMMAND.i tried this function with other commands such as PWD,LS,GET,PUT but it also returns the same error,while this is the suggested function in MSDN for doing FTP.how can i use this function in my program specially with the command "Quote Site lrecl=80 recfm=fb"?i would be so happy if someone answers me.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The '500 Invalid Command' is comming back from the server your trying to talk to. This means you've sent a command the server didn't recognize. Even though it looks right in VB6, what the API got from VB wasn't right, apparently. This is evidenced by the fact that none of the FTP commands are working. Post the code your using for setting up the call to FTPCommand and the declaration for FTPCommand so we can see whats going on. RageInTheMachine9532

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups