Tags » VBScript

how to install/uninstall exe with 64bit os and reading exit code

On Error resume next

Dim PROGRAMFILES64
Dim WINDOWS
Dim SYSDRIVE

Set WshShell = WScript.CreateObject(“WScript.Shell”)
PROGRAMFILES64 = wshShell.ExpandEnvironmentStrings( “%PROGRAMFILES%” )
WINDOWS = wshShell.ExpandEnvironmentStrings( “%SYSTEMROOT%” )
SYSDRIVE = wshShell.ExpandEnvironmentStrings( “%SYSTEMDRIVE%” ) 106 more words

VBScript

how to read 64bit registry in 64bit os

On error Resume Next
‘Value = 151025673
strComputer = “.”
Const HKLM = &h80000002
Set objCtx = CreateObject(“WbemScripting.SWbemNamedValueSet”)
objCtx.Add “__ProviderArchitecture”, 64
objCtx.Add “__RequiredArchitecture”, TRUE
Set objLocator = CreateObject(“Wbemscripting.SWbemLocator”) 47 more words

VBScript

Welcome to VB Script

First post in a long time,holidays, illness and other things just got in the way.

One of our consultants has created a huge application in Excel based on VB Script. 255 more words

Development

Send notification email from SCCM 2012 Task Sequence

I wanted to be able to send an email from a step in a SCCM 2012 OS Deployment (OSD) task sequence. This was so that I could be notified when the task sequence had completed successfully. 310 more words

Windows

Presenting the new open source Enterprise Architect Shapescript Library

The new open source Enterprise Architect Shapescript Library in Github is an initiative to share shapescripts for Enterprise Architect within the user community.

Shapescripts in Enterprise Architect are used to define the presentation of elements on a diagram. 773 more words

Enterprise Architect

Non Sequitur: Creating Dynamic Variables on the Fly in VBScript

Update 2016-06-08: WordPress keeps butchering the code so I’m removing the pretty formatting for now.

I’m only mentioning this because of something that came up recently and I thought it was kind of neat. 832 more words

SCCM

A talking number guessing game.

Here’s a surprisingly simple VBScript that plays a number guessing game. It uses your computer’s voice to tell you whether your guess is too high or too low. 65 more words

Vbscript