All Forums >> [Scripting] >> WSH & Client Side VBScript >> Problem with local printer declaration Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Hi i'm new to vbs i have a script that is near to be completed but i have a small error and don't know where it is...
If i use the notlike condition it returns a error 80041017 non valid...Is that condition (notlike) exit in vbs? If i use (like) it worked but not as i wanted...
All i want is bypass the default printer if in the name there is adobe or fax...
make: ("Select * From Win32_Printer Where Local = True AND Name notLike '%Adobe%' AND Name notLike '%FAX%'") To: ("Select * From Win32_Printer Where Local = True AND Name not Like '%Adobe%' AND Name not Like '%FAX%'")
I'm guessing this is the mistake.. sometimes Microsoft uses an asterik (*) as wildcard instead of percent sign (%), don't blame me :)