Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

FTP with Network

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2008, 04:06 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Question FTP with Network

i'm think,Network.dll it's real very nice dll.i'm look exampel for uploading file in ftp.it is cool!
but i'm have one problem.how can i recive list of files and folders from ftp?
i'm use
Code:
ls nameofdir
but it doesn't work.why?
and i'm try to creat new folder with
Code:
mkdir nameofdir
but not rezults too.


but how can i get file from site with this dll?for example from this url
Code:
http://byaka.programist.ru/files/easy_bash/Easy_Bash.zip
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #2 (permalink)  
Old 08-31-2008, 04:13 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Why don't you use the FTP library instead?
Here is an FTP implementation with the Network library: http://www.basic4ppc.com/forum/open-...-progress.html
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 04:31 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

with ftp dll i don't can veiw progress.
i'm use thes example,but it haven't reciving list of files from ftp and creating folder.
help me please!

and what about my second Question?
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #4 (permalink)  
Old 08-31-2008, 04:59 PM
giannimaione's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 244
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Sub Globals
Dim ListF(0)
End Sub

first, use ftp for capturing ListF (linux ls)
ListF()=ftp.GetEntries("*.zip",False)
and after, you use Network.dll

sorry for my english
__________________
Gianni
Reply With Quote
  #5 (permalink)  
Old 08-31-2008, 05:09 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

using ftp.dll and network.dll-it's not good...i'm want do all only with network.dll and binary.dll
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #6 (permalink)  
Old 09-03-2008, 10:36 AM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

UUUP!!!
what about my problems???
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #7 (permalink)  
Old 09-03-2008, 10:41 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

This is not a simple task.
There are many resources available about the FTP protocol: RFC 959 - File Transfer Protocol
Raw FTP Command List
You will need to understand the protocol and manually implement it if you don't want to use the FTP library.
Reply With Quote
  #8 (permalink)  
Old 09-03-2008, 11:06 AM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

thaks erel!it's good info)
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #9 (permalink)  
Old 09-24-2010, 01:38 AM
Newbie
 
Join Date: Aug 2010
Posts: 5
Exclamation I try to send two same file to one server

Hi Erel ! I'm trying to send two same file to one server but my app can't do that. i used and reference your example ( ftp_progress_v1.zip ). It's cool. i can upload many file but they must be diffirent ! if i try to send 1 file two times, i reviced an error :
if i close my application anh restart it, i can upload it !
Stor error : 550
Kdata.db: the process cannot access the file because it is being used by another process.
550 Kdata.db:
the process cannot access the file because it is being used by another process.
Kdata is filename which i need to upload to server.
help me !
thank you !

Last edited by lvtonet : 09-24-2010 at 01:43 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test if network is available? obrienj Questions (Windows Mobile) 4 07-13-2008 04:53 PM
Network Heinz Questions (Windows Mobile) 1 02-24-2008 10:30 AM
Network access skipper Questions (Windows Mobile) 4 02-19-2008 08:21 AM
Rights for network adaptor MM2forever Chit Chat 4 09-30-2007 02:57 PM
network and WEB??? Brian Questions (Windows Mobile) 0 05-05-2007 07:22 AM


All times are GMT. The time now is 10:21 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0