Results 1 to 5 of 5

Thread: Inet tool? Help! I dont konw what the code does!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    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...
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    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?
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2009
    Location
    Missouri
    Posts
    770

    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.
    Rate my post if i helped you!


    Button Configuration Control For VB6 GetAsyncKeyState
    I'm the 7th best high school programmer in the nation!(according to SkillsUSA Nationals)(Used C#.Net)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width