jim568 Posted February 15, 2008 Share Posted February 15, 2008 Can some analyze this script? Keep getting invalid character And I do not know anything about scripting cod The file suppose to get OEM /bios info for identification running winxp sp2 on intel G31 chipset Thanks Jim VB Code for WMI Branding: $wbemFlagReturnImmediately = 0x10 $wbemFlagForwardOnly = 0x20 $colItems = "" $strComputer = "localhost" $computerModel = "";Store computer model retreived. $machineType = "";Brand either Desktop or Laptop. $wksIDValue = ""; Model Branding. $enhancedMachine = "";Branding for Multimedia Machine. $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2") $colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_ComputerSystem", "WQL", _ $wbemFlagReturnImmediately + $wbemFlagForwardOnly) ;Search for Model from Win32_ComputerSystem If IsObj($colItems) Then For $objItem In $colItems $computerModel = $objItem.Model Next EndIf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2008 Developers Share Posted February 15, 2008 works fine on my pc ... what is the exact error you get and on which line ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jim568 Posted February 15, 2008 Author Share Posted February 15, 2008 works fine on my pc ... what is the exact error you get and on which line ?thanks for replywhen i do run script nothing happends no out putwhen i use scite to run scripti get followingMicrosoft ® Windows Script Host Version 5.7Copyright © Microsoft Corporation. All rights reserved.C:\Documents and Settings\admin\Desktop\test.vbs(1, 1) Microsoft VBScript compilation error: Invalid character>Exit code: 1 Time: 0.216 Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2008 Developers Share Posted February 15, 2008 thanks for replywhen i do run script nothing happends no out putwhen i use scite to run scripti get followingMicrosoft ® Windows Script Host Version 5.7Copyright © Microsoft Corporation. All rights reserved.C:\Documents and Settings\admin\Desktop\test.vbs(1, 1) Microsoft VBScript compilation error: Invalid character>Exit code: 1 Time: 0.216I hope you name the file Something.au3 not test.vbs ... The script doesn't contain any "output" function, so what is it you want to do with the result ? MsgBox() or something ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
jim568 Posted February 15, 2008 Author Share Posted February 15, 2008 I hope you name the file Something.au3 not test.vbs ... The script doesn't contain any "output" function, so what is it you want to do with the result ? MsgBox() or something ?no i copy it test to see the resultjust wanted to view the resulthow do you use msgbox to see the result ?thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted February 15, 2008 Developers Share Posted February 15, 2008 no i copy it test to see the resultjust wanted to view the resulthow do you use msgbox to see the result ?thanksThe Error shown says test.vbs but autoit3scripts use au3 so the filename needs to be something like test.au3.To find info about MsgBox() you just need to open the helpfile ... Hit F1 to open it .. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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