Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a C++ Expert!

Join 244,308 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 824 people online right now. Registration is fast and FREE... Join Now!




c++ ftp in console

 
Reply to this topicStart new topic

c++ ftp in console

jasper199069
10 Oct, 2008 - 05:15 AM
Post #1

New D.I.C Head
*

Joined: 19 Aug, 2008
Posts: 7


My Contributions
maybe this is a stupid question bus is there a way do use ftp in console or do i need a extra library for this if yes can someone post one

greetz jasper

User is offlineProfile CardPM
+Quote Post


UG Cyber
RE: C++ Ftp In Console
10 Oct, 2008 - 06:30 AM
Post #2

D.I.C Regular
***

Joined: 24 Jul, 2008
Posts: 303



Thanked: 4 times
My Contributions
You can use FTP with a batch file, that will be much easier, But if you want to do it in C++ all i know of are system() calls, wich is a bad habbit
User is offlineProfile CardPM
+Quote Post

homemade-jam
RE: C++ Ftp In Console
10 Oct, 2008 - 08:01 AM
Post #3

eee Guru
Group Icon

Joined: 17 Mar, 2008
Posts: 1,243



Thanked: 4 times
Dream Kudos: 50
My Contributions
I made a sort of automated ftp client using Winsock - it was somewhat complicated and never really managed to sort out of the file transfers...can post teh codez if you want.
User is offlineProfile CardPM
+Quote Post

UG Cyber
RE: C++ Ftp In Console
10 Oct, 2008 - 11:59 AM
Post #4

D.I.C Regular
***

Joined: 24 Jul, 2008
Posts: 303



Thanked: 4 times
My Contributions
Ya, you can make your own. but not only is it going to be complicated, but only the people that you give it to will be allowed to recieve the file from your client....Great for an interior network though...

(theres like 6 computers on my network, so i made one with an address book so it worked out great!!)
User is offlineProfile CardPM
+Quote Post

homemade-jam
RE: C++ Ftp In Console
10 Oct, 2008 - 12:20 PM
Post #5

eee Guru
Group Icon

Joined: 17 Mar, 2008
Posts: 1,243



Thanked: 4 times
Dream Kudos: 50
My Contributions
What I did was made it so that you supplied the server address and port as arguments to the exe, then you could pass the ftp commands directly through the prog to the server.


User is offlineProfile CardPM
+Quote Post

jasper199069
RE: C++ Ftp In Console
10 Oct, 2008 - 11:45 PM
Post #6

New D.I.C Head
*

Joined: 19 Aug, 2008
Posts: 7


My Contributions
could you please post that code
many thanks for the reply's
User is offlineProfile CardPM
+Quote Post

homemade-jam
RE: C++ Ftp In Console
11 Oct, 2008 - 01:44 AM
Post #7

eee Guru
Group Icon

Joined: 17 Mar, 2008
Posts: 1,243



Thanked: 4 times
Dream Kudos: 50
My Contributions
I might get round to posting it as a snippet this weekend to demonstrate the basic use of winsock - unless one already exists...otherwise, I would prefer it if you could show some sort of attempt teh codez...


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic

Time is now: 7/4/09 07:02PM

Live C++ Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month