|
-
Aug 17th, 2010, 05:11 PM
#1
Thread Starter
Fanatic Member
Inet tool? Help! I dont konw what the code does!
what does this do?
Inet1.Execute , "GET scores.txt C:\temp\scores" & DataID & ".txt"
Inet1.Execute , "PUT C:\temp\scores" & DataID & ".txt scores.txt"
DataID = (Form1.Rand(1, 999999))
Inet1.Execute , "GET scores.txt C:\temp\scores" & DataID & ".txt"
Inet1.Execute , "Send C:\temp\scores" & DataID & ".txt scores.txt"
This is from different subs and such. I just dont know what it does...
-
Aug 18th, 2010, 03:05 AM
#2
Re: Inet tool? Help! I dont konw what the code does!
get and put are ftp commands when connected to a ftp server, upload or download a file
afaik put and send do the same
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 18th, 2010, 03:00 PM
#3
Thread Starter
Fanatic Member
Re: Inet tool? Help! I dont konw what the code does!
Okay. So, an ftp server, would i put that in the url property of it? and i still dont understand. Is the GET scores.txt, the Scores.txt, the file name going to be saved? or the file it is getting off the web? how do i set up a server to do this?
-
Aug 18th, 2010, 04:21 PM
#4
Re: Inet tool? Help! I dont konw what the code does!
get gets from server
put puts on server
generally you should use code to suit your facilities, not create a new server to suit some code
setting up a ftp server is not really within the scope of this forum, search on google, or see if your isp has ftp services available for your use
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 18th, 2010, 06:36 PM
#5
Thread Starter
Fanatic Member
Re: Inet tool? Help! I dont konw what the code does!
ooooooh. i get it. I'll try to test it out and reply if i can't get it to work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|