andrew545 Posted December 30, 2013 Author Posted December 30, 2013 You keep complaining about how annoyed you are, or how "aggervating" (your horrible spelling, not mine) this is for you. Yet you aren't listening to the help people are trying to provide to you. First off, since you are on Windows 8 and you're trying to save to the root of C:, you need to ensure #RequireAdmin is at the top of your script. Secondly, this: FileRead($PublicIP, 1) ..makes no sense at all. Go back and look at the first parameter for FileRead, to see the mistake. Lastly, as has been suggested several times, try a literal path for the file. #RequireAdmin #include <Inet.au3> $PublicIP = _GetIP() FileOpen("C:\ip.txt", 1) ;>>>>FileRead($PublicIP, 1) ***Get rid of this, it makes no sense*** FileWrite("C:\ip.txt", $PublicIP) ...this works just fine on WIN8 Well, thank you anyway but i found how to do it by my-self thank you though and i dont think my spelling is that bad, do you ? LOL all in good fun but i was so aggervated but then i just put C:ip.txt and it worked
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