Windows Batch file to refresh Dll

Discussion in 'Tally Developer' started by Lynch, Jan 20, 2023.

    
  1. Lynch

    Lynch Member


    Hello members,
    (this might have been shared already)
    While developing TDL Cide which is using com interface, we would come across registering the dll file repeatedly for the changes made in the c# project. to register the DLL we have to enter certain commands in the Command Prompt(admin elevated mode). you may use the following windows batch file to avoid all the repeated tasks, just providing the dll path itself sufficiient..

    Code:
    @echo on
    cd..
    cls
    cd microsoft.net
    cls
    cd framework64
    cls
    cd v4.0.30319
    cls
    set /p path=Enter the dll to reegister or unregister:
    regasm /u "%path%"
    
    regasm /codebase "%path%"
    set /p ex=Press enter to exit
    paste the above code in a txt editor and save it as <<filename>>.bat in your easily accessable folder such as desktop... and run it as administrator...
     
    anish likes this.


Share This Page