Hi guys, :wave:
How do you get the amount of memory (discspace) you have left on a FTP account? :ehh:
Plz help me!
//Alex
Printable View
Hi guys, :wave:
How do you get the amount of memory (discspace) you have left on a FTP account? :ehh:
Plz help me!
//Alex
that would require some kind of SSH commands, i would think. Do you have cPanel on your server?
yes, I do
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...
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
can I have that code? the php code and the code for vb to read of it?
Visit it. this is a very good code for handling ftp operations. Link
okay, but is it able to get the amount of space you've got left? that's what's interessting.
No there is no such thing. but u can get thesize ofa file like this:
VB Code:
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.
do I need that EZ FTP to do that?
very well...does anyone have another solution?
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.
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?:ehh: