VBS using LIKE to compare strings “Sub or Function not defined”
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to make a script to connect a network printer to a user computer. The script uses the computer name who needs the printer as a parameter. Printers names are similar their printserver name, eg. server_USA has printers like printer_USA01, printer_USA02. But it's throwing the error "Sub or Function not defined" when arrives at the first like... why ? Set shl = WScript.CreateObject("WScript.Shell") strName = Wscript.Arguments.Item(0) 'input Printer name strPrinter = InputBox("Please enter share name of printer to install:", _ "Add