OEM LOGO

Author Message
TomRiddle

  • Total Posts : 620
  • Scores: 12
  • Reward points : 0
  • Joined: 2/7/2008
  • Location: Australia
  • Status: offline
OEM LOGO Friday, July 24, 2009 10:58 PM (permalink)
0
 
Have you got an OEM logo in your system properties?
 

 'Script by tomriddle 2009
 'Read and display OEM logo from WMI Win32_ComputerSystem
 
   On Error Resume Next
   strComputer="."
   Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
   Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
   For Each objItem In colItems
      strOEMLogoBitmap = Join(objItem.OEMLogoBitmap, ",")
      ibmp=strOEMLogoBitmap
   next
   Const ForWriting = 2
   Dim fso, f, Msg
   x=0
   Set objShell = CreateObject("WScript.Shell") 
   outputFile = objShell.ExpandEnvironmentStrings("%temp%")&"\logo.bmp"
   
   arrayibmp=split(ibmp, ",")
   ibmpSize=ubound(arrayibmp)
   Set fso = CreateObject("Scripting.FileSystemObject") 
   Set file = fso.OpenTextFile(outputFile, 2, True)
   Do 
      myByte = hex(arrayibmp(x))
      if len(myByte) = 1 then myByte = "0" & myByte
      file.Write Chr(Clng("&H" & myByte))
      x=x+1
   Loop until x=ibmpSize
   file.close
   objShell.Run outputFile, 0, true
   fso.DeleteFile(outputFile)
   on error goto 0
 
 

-join([int[]][char[]]'Ut|jwXmjqq%Wzqjx'|%{[char]($_-5)})
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9