Skorn Posted January 28, 2005 Share Posted January 28, 2005 Yeh goofy title, I know 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? Thanks Link to comment Share on other sites More sharing options...
this-is-me Posted January 28, 2005 Share Posted January 28, 2005 (edited) @OSVersion FileInstall Run Edited January 28, 2005 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
CyberSlug Posted January 28, 2005 Share Posted January 28, 2005 If @OSVersion = "WIN_98" Then do_Win98() ElseIf @OSVersion = "WIN_XP" Then do_WinXP() Else MsgBox(4096,"Error", "Unsupported system.... quitting") EndIf Exit Func do_Win98() ;put win98 script here EndFunc Func do_WinXP() ;put winXP script here EndFunc Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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