Thursday, September 09, 2010
   
Text Size

Search

hits.

purpleender

Rep

Gamerscore33992

ZoneUnderground

Check to determine a Laptop or Desktop

To delete registry sub-keys and key path:

Dim strCompType

'****Main Code
On Error Resume Next

strCompType = WshShell.RegRead("HKLM\System\CurrentControlSet\Services\Pcmcia\Start")

'Check if a laptop
If (strCompType = "0") Then
       MSGBOX ("Laptop Being Used")

Else

       MSGBOX ("Desktop Being Used")

End If

 

 

Please Note: Append to Template.vbs to run this script.