Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 15th, 2007, 10:31 AM
Authorized User
 
Join Date: Dec 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default vb6 subroutine to ftp a file?

hello,
I have a file
BLURG.txt
in a subdirectory
D:\B HC\NewB
that I'd like to, using a VB6 subroutine, pass as a variable to the subroutine
the name of the file & directory where it can be found (for this ex., D:\B HC\NewB\BLURG.txt),
then the subroutine will connect to a FTP site,
ftp://192.782.32.1
using a username of
bob
and a password of
smith
then go to the
/u/gnits/tfiles/
subdirectory on the ftp site and upload the above .txt file using ASCII mode.

I've tried googling how to FTP through VB6 but all the webpages I found were somewhat "over my head" for me, a relative VB newbie, and didn't have any to-the-point examples that I could modify and use, so I was hoping someone could share with me the subroutine code that could do the above?
thanks in advance!
david

 
Old January 16th, 2007, 12:09 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello David

Check this link
http://in.geocities.com/raghavendra_...Inet_Check.zip

It contains vb project which does the same thing what you need. I have tuned it into my own easy way.

It contains
1) 1 VB form
2) 2 Modules

Don't worry on modules, its bit complicated for you to understand. Open the form code, and see the source of "form_load" event and "command6_click" event. It will be easy for you to understand.

Hope this helps.

With Regards,
Raghavendra Mudugal
 
Old January 16th, 2007, 12:15 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

and also, check this link

http://p2p.wrox.com/topic.asp?TOPIC_ID=27540

(related to same topic)

Hope this helps.

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP n VB6.0 caveatashish VB How-To 2 April 12th, 2011 05:58 AM
ftp file upload yugi9966 ADO.NET 1 August 7th, 2008 09:09 AM
How to change FTP File permissions malay mehta PHP How-To 0 October 29th, 2007 05:18 AM
progress bar while getting file from FTP Dhodie Pro VB 6 4 October 28th, 2004 10:15 PM
Deleting file after ftp download otarboy Pro VB 6 0 September 27th, 2004 03:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.