save text to file vb |
![]() ![]() |
save text to file vb |
Jan 7 2006, 02:54 AM
Post
#1
|
|
|
New Member ![]() Posts: 6 OS: 2000 |
|
|
|
Jan 7 2006, 02:38 PM
Post
#2
|
|
|
Member ![]() ![]() ![]() Posts: 260 OS: Win XP |
Hello shawn,
I don't understand your question: what is a clante?. And do you want the upload to be done via VB or manually? |
|
|
Jan 8 2006, 07:52 PM
Post
#3
|
|
|
New Member ![]() Posts: 6 OS: 2000 |
clante = client . and the upload i would like to be vb.
|
|
|
Jan 9 2006, 10:55 AM
Post
#4
|
|
|
Member ![]() ![]() ![]() Posts: 260 OS: Win XP |
OK, I am not sure about your programming skills yet, but let's try it. I suppose you have at least intermediate knowledge and experience in VB.
Saving files is done like this: CODE Open "C:\file.txt" For Output As #1 Write #1, "Some text" Close #1 Change the C:\file.txt to your desired file name Now to uploading the file. First add an Inet control through Project->Components. Add it on your form. Then add this code somewhere where you want CODE Inet1.Protocol = icFTP Inet1.URL = "url" 'change this to the url where you want to upload the file Inet1.UserName = "username" 'change this to the username Inet1.Password = "pwd" 'enter your password here Inet1.Execute , "PUT C:\file.txt file.txt" Do While Inet1.StillExecuting DoEvents Loop Change "PUT C:\file.txt file.txt" to "PUT your_file_on_your_disc future_name_of_the_file_on_the_server" I hope that was helpful |
|
|
Jan 9 2006, 02:33 PM
Post
#5
|
|
|
New Member ![]() Posts: 6 OS: 2000 |
can you do this with more then 1 filed ( Txet box)
|
|
|
Jan 11 2006, 05:50 AM
Post
#6
|
|
|
Member ![]() ![]() ![]() Posts: 260 OS: Win XP |
please please check what you write because I have problems understanding your replies. Try this:
CODE Write #1, txtField1.Text Write #1, txtField2.Text ... etc. |
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies / Views | Topic Information | |||||
|---|---|---|---|---|---|---|---|
![]() |
1 / 200 | 29th December 2007 - 01:46 PM magusbuckley started - last by magusbuckley |
|||||
![]() |
26 / 706 | 7th March 2008 - 04:19 PM FOXYGRANDMA started - last by FOXYGRANDMA |
|||||
![]() |
4 / 1,074 | 22nd April 2008 - 03:12 PM Doctor Inferno started - last by dsenette |
|||||
![]() |
6 / 401 | 4th May 2008 - 08:01 AM lem.rar started - last by lem.rar |
|||||
|
Time is now: 1st December 2008 - 07:08 PM |
| Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk. |