Results 1 to 13 of 13

Thread: Get available FTP space?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Question Get available FTP space?

    Hi guys,

    How do you get the amount of memory (discspace) you have left on a FTP account?

    Plz help me!

    //Alex
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Get available FTP space?

    that would require some kind of SSH commands, i would think. Do you have cPanel on your server?
    My usual boring signature: Something

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Get available FTP space?

    yes, I do
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Get available FTP space?

    huh. i am not very good with connecting to the internet in vb. Maybe some kind of internet transfer, i just read a thread about it yesterday, might want to search it. sorry, i am not much help...
    My usual boring signature: Something

  5. #5
    Junior Member
    Join Date
    Oct 2005
    Posts
    17

    Re: Get available FTP space?

    i was gonna try this the other day to see how much bandwidth i had used but i ended up getting some1 to write me a php page then just read it off of that

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Get available FTP space?

    can I have that code? the php code and the code for vb to read of it?
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  7. #7
    Fanatic Member vivek_master146's Avatar
    Join Date
    Apr 2006
    Location
    Delhi,India
    Posts
    787

    Talking Re: Get available FTP space?

    Visit it. this is a very good code for handling ftp operations. Link
    Dont rely only on your luck. Work hard until You get success.
    vb Code:
    1. Private sub Time_ispassing
    2. While Me.Notgetsuccess
    3. trygain=tryagain+1
    4. Me.workhard
    5. wend
    6. end sub

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Get available FTP space?

    okay, but is it able to get the amount of space you've got left? that's what's interessting.
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  9. #9
    Fanatic Member vivek_master146's Avatar
    Join Date
    Apr 2006
    Location
    Delhi,India
    Posts
    787

    Re: Get available FTP space?

    No there is no such thing. but u can get thesize ofa file like this:
    VB Code:
    1. ITC.Execute , "SIZE " & Chr(34) & lstRemoteFile.Text & Chr(34)

    But its for particular file in a list box. by looping u can find out the file one by one in a listbox. but i guess that it will be very time consuming.
    Dont rely only on your luck. Work hard until You get success.
    vb Code:
    1. Private sub Time_ispassing
    2. While Me.Notgetsuccess
    3. trygain=tryagain+1
    4. Me.workhard
    5. wend
    6. end sub

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Get available FTP space?

    do I need that EZ FTP to do that?
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Get available FTP space?

    very well...does anyone have another solution?
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

  12. #12
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Get available FTP space?

    Since the amount of space you have is an arbitrarily set thing (your hosting company gives you as much as you pay for - it has nothing to do with actual physical size of any medium), you'd have to find out how much space you're using and subtract that from what you're paying for. There's nothing on the server that you can access that will tell you how much space you're paying for.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Location
    Sweden
    Posts
    173

    Re: Get available FTP space?

    I know that, but how do I find out how much space I'm using and subtract that from what I'm paying for?
    That's what I need to know.
    I know other programs can do this, for example FileZilla...so it should be able for a VB app. to do so as well.
    Doesn't anyone in this whole forum know how to do this?
    Please Help Us To Save Ana

    You never fail before you stop trying!
    ______________________________
    If I manage to say something good...please reputate
    ______________________________
    ________

    Links:
    Intellithing
    Digitala.nu
    Norrköpings Goklubb
    WoW Trade Center

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width