Student call forth| | Class| | Date| | VB hired man Modular test ground Report VBScript: PC_Test.vbs Written by: Date: 03/27/2012 Class: COMP230 professor: prof  =================================== Menu driven estimator / Network Tests This VBScript schedule is dispose using the Mod1_PCTests.cmd portion Script get along args = WScript.Arguments WScript.Echo vbCrLf  bring casing args.Item(0) Case 1 even out WshShell = WScript.CreateObject(WScript.Shell) WScript.Echo The computer name is ............ & axerophthol; _WshShell.ExpandEnvironmentStrings(%COMPUTERNAME%) WScript.Echo The Num of CPUs is .............. & internationalist antiophthalmic factorere; _WshShell.ExpandEnvironmentStrings(%NUMBER_OF_PROCESSORS%) WScript.Echo The Processor Architecture is ... & angstromere; _WshShell.ExpandEnvironmentStrings(%PROCESSOR_ARCHITECTURE%) Case 2 strComputer = . placed objWMIService = GetObject(winmgmts: _ & amp; {impersonationLevel= impersonate}!\\ _ & strComputer & oot\cimv2) peck colComputer = objWMIService.ExecQuery _ ( select * from Win32_ComputerSystem) For Each objComputer in colComputer  intRamMB = int((objComputer.TotalPhysicalMemory) /1048576)+1 Wscript.Echo System Name ...... & objComputer.Name _ & vbCrLf & Total RAM ........ & intRamMB & MBytes. Next Case 3 strComputer = .
Set objWMIService = GetObject(winmgmts: _ & {impersonationLevel=impersonate}!\\ & strComputer & oot\cimv2) Set colOperatingSystems = objWMIService.ExecQuery _ (Select * from Win32_OperatingSystem) VBScri pt: PC_Test.vbs Written by: Date: 03/27/! 2012 Class: COMP230 Professor: Professor  =================================== Menu Driven Computer / Network Tests This VBScript program is run using the Mod1_PCTests.cmd Batch Script Set args = WScript.Arguments WScript.Echo vbCrLf  Select Case args.Item(0) Case 1 Set WshShell = WScript.CreateObject(WScript.Shell) WScript.Echo The computer name...If you privation to get a full essay, bless it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment