Sign in to follow this  
Followers 0
potitpanda

do something when computername begins by ....

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

thanks

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  
Followers 0