Jump to content
Sign in to follow this  

AutoIt saved my life.

Recommended Posts

Yeh goofy title, I know :lmao: But, I just can't believe how much time (and tedious clicking) autoit is saving me at work. We just had some issues with our network where we need to change our dns ip's for all 120 of the pc's I support and we DON'T have dhcp, doh! Which means I'd have to manually go to each damn machine and update these ip's.. talk about tedious. I whipped up 2 scripts, one for XP and one for 98 that updates the new dns's. Not only that I'm using it to automate installs for all of our progs and even for auto-configing new pc's that come in. Anyway, to warrent this thread being in here my question is, how do i put both scripts into one and have it run based on os detection?


Share this post

Link to post
Share on other sites

If @OSVersion = "WIN_98" Then
ElseIf @OSVersion = "WIN_XP" Then
   MsgBox(4096,"Error", "Unsupported system.... quitting")


Func do_Win98()
 ;put win98 script here

Func do_WinXP()
 ;put winXP script here

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...