Active X

Active X Batch Script

Posted by robd on August 16, 2012
Batch Scripts / No Comments

Some stupid software needs Active X controls to work, here’s a basic script for that to work:

The following batch file can be configured as a computer startup script to install the components:

@Echo Off
Setlocal

If exist C:\Windows\System32\STUPIDSOFTWARE.dll Goto End

XCOPY /Y "\\FileServer\Software\STUPIDSOFTWARE\STUPIDSOFTWARE.dll" "C:\Windows\System32\"

XCOPY /Y "\\FileServer\Software\STUPIDSOFTWARE\MORESTUPIDSOFTWARE.dll" "C:\Windows\System32\"

REM Does it need registering?
regsvr32.exe /s "C:\Windows\System32STUPIDSOFTWARE.dll"
regsvr32.exe /s " C:\Windows\System32\MORESTUPIDSOFTWARE.dll"

:End
Exit

Tags: , ,