@echo off CLS REM -- set variables ---------------------------------------------------------------------- set _Source=%~d0%~p0 set _Navision=%_Source% set _Framework=%windir%\Microsoft.NET\Framework\v2.0.50727 set _ImageName=Microsoft.Navision.Mail "%_Framework%\Regasm.exe" /tlb:"%_Navision%%_ImageName%.tlb" "%_ImageName%.dll" pause