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. C#
  4. FTP Drive Space

FTP Drive Space

Scheduled Pinned Locked Moved C#
csharpvisual-studiosysadminquestion
2 Posts 2 Posters 0 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.
  • P Offline
    P Offline
    paas
    wrote on last edited by
    #1

    I am developing a windows service with Visual Studio 2005 that automates the FTP of files to a remote server. I am wondering if anyone knows of a way I can programatically retrieve the available drive space on the remote server prior to the FTP transfer? I know that I can use the GetResponse method of the FTPWebResponse class to retrieve a status code indicating that there is insufficient space when that occurs, but I would prefer to be proactive. Thank you...

    G 1 Reply Last reply
    0
    • P paas

      I am developing a windows service with Visual Studio 2005 that automates the FTP of files to a remote server. I am wondering if anyone knows of a way I can programatically retrieve the available drive space on the remote server prior to the FTP transfer? I know that I can use the GetResponse method of the FTPWebResponse class to retrieve a status code indicating that there is insufficient space when that occurs, but I would prefer to be proactive. Thank you...

      G Offline
      G Offline
      Gonzalo Brusella
      wrote on last edited by
      #2

      As far as I know there is no way to know the free space unless the server has a [realy twisted custom] command fot it. IE: If you want to store a file you send a "STOR" command. To change the current dir, the command is "CWD". As far as I know there is no "standard" command for get the free space :( -- modified at 10:51 Friday 18th August, 2006

      I'm on a Fuzzy State: Between 0 an 1

      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