Mitt Posted February 26, 2009 Share Posted February 26, 2009 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. Link to comment Share on other sites More sharing options...
jvanegmond Posted February 26, 2009 Share Posted February 26, 2009 (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 February 26, 2009 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
ReaImDown Posted February 26, 2009 Share Posted February 26, 2009 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] Link to comment Share on other sites More sharing options...
EndFunc Posted February 26, 2009 Share Posted February 26, 2009 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. Link to comment Share on other sites More sharing options...
Mitt Posted February 26, 2009 Author Share Posted February 26, 2009 Damn you guys are quick. Thanks a bunch, it worked like a charm. Link to comment Share on other sites More sharing options...
myxomatosii Posted February 26, 2009 Share Posted February 26, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now