@echo off
cd /d %~dp0
cmd.exe /c "echo Generate and register type library." & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /tlb MiddlewareCOMServer.exe & "C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe" MiddlewareCOMServer.exe & pause