Sign in to follow this  
Followers 0
Mitt

Retrive file from URL

6 posts in this topic

I am trying to find out if AutoIt can retrieve a file text file from a URL and open it for reading. I am working on a project where I need to synchronize a workstations description field with its MAC address. What I would like to do is have a .txt file on a private Intranet server that can be loaded/opened and read line by line trying to match a MAC address and if successful write the value found for the description to the workstation.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sure, this is very well possible in AutoIt. :]

If you're not sure whether or not AutoIt can do something.. The general answer is: Yes, AutoIt can do it.

Edited by Manadar

Share this post


Link to post
Share on other sites

I am trying to find out if AutoIt can retrieve a file text file from a URL and open it for reading. I am working on a project where I need to synchronize a workstations description field with its MAC address. What I would like to do is have a .txt file on a private Intranet server that can be loaded/opened and read line by line trying to match a MAC address and if successful write the value found for the description to the workstation.

InetGet ( "URL" [,"filename" [, reload [, background]]] )

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

I am trying to find out if AutoIt can retrieve a file text file from a URL and open it for reading. I am working on a project where I need to synchronize a workstations description field with its MAC address. What I would like to do is have a .txt file on a private Intranet server that can be loaded/opened and read line by line trying to match a MAC address and if successful write the value found for the description to the workstation.

That should be relatively simple. Use InetGet(). Look in the helpfile to see its usage. Then you can use something like FileRead with a combination of things like StringCompare etc. Take a look around.


EndFuncAutoIt is the shiznit. I love it.

Share this post


Link to post
Share on other sites

Damn you guys are quick. Thanks a bunch, it worked like a charm.

Share this post


Link to post
Share on other sites

Damn you guys are quick. Thanks a bunch, it worked like a charm.

this was a question i was going to be asking in a few days, i think i will try this as well :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0