Jump to content
Sign in to follow this  
cdnnewbie

Checking Computer Names

Recommended Posts

cdnnewbie

I have a scirpt that only needs to run if it matches a certain computer name. So here is the test script I was writing.

if @ComputerName = "CS01"or"CS02"or"CS07" then

msgbox(0, "Test", "Your computer matches one of the ones in the list")

sleep(3000)

endif


[quote]He who smiles in a crisis has found someone to blame[/quote]

Share this post


Link to post
Share on other sites
Jos

if @ComputerName = "CS01" or @ComputerName = "CS02" or @ComputerName = "CS07" then
msgbox(0, "Test", "Your computer matches one of the ones in the list")
sleep(3000)
endif


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×