Jump to content
Sign in to follow this  

do something when computername begins by ....

Recommended Posts



I want my script do some actions depending on the computer name.


If @computername begins by S272 do this....

If @computername begins by S274 do this....

etc etc...

How can I translate this into AutoIt Language


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

[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

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.