ReitzelTechnology Posted September 25, 2011 Share Posted September 25, 2011 Here is what I want to do, I have a script now to map and connect printers for multiple offices. Each office has a network printer and all are on the main server. We want to do a conditional statement so that if the computer name is 324-B113-1 (and the printer name is 324-B113-Printer) that is will say something like this: What I need to know how to do is how to make autoit do an IF statement for that it says something like IF @ComputerName contains "324-B113" then run the command to map the printer for that office. We already have the commands to map the printers, but right now, if I login to a computer in the B112 office (computer name 324-b112-1) it is showing the printers for the entire building! We just want to show printers for that office. Link to comment Share on other sites More sharing options...
wakillon Posted September 25, 2011 Share Posted September 25, 2011 Try If StringInStr ( @ComputerName, "324-B113" ) Then... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
ReitzelTechnology Posted September 26, 2011 Author Share Posted September 26, 2011 Thanks! That did it. 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