potitpanda Posted February 9, 2009 Share Posted February 9, 2009 Hello I want my script do some actions depending on the computer name. Example If @computername begins by S272 do this.... If @computername begins by S274 do this.... etc etc... How can I translate this into AutoIt Language Thanks Link to comment Share on other sites More sharing options...
Manjish Posted February 9, 2009 Share Posted February 9, 2009 its quite simple really if StringLeft(@computername,4)="S272" Then something() Func something() ;do something here EndFunc [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
potitpanda Posted February 9, 2009 Author Share Posted February 9, 2009 thanks 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