Search code examples
environment-variablesconsole2

Executing things on console2 startup


I am using console2 and I am trying to execute a few simple things when I fire console2 like

set PATH=%PATH%;C:\MyPgm\Git\bin

How can I do such things. And on the side is there somewhere I can find example of nice configs of console2


Solution

  • The version I am working with is 2.00.148

    • First, create a batch file (*.bat) with any name you like ("shell.bat") and add the lines to be executed on the start up of the console.. additionally you have to add "cmd" (or "bash") command at the end of file to open up the command shell...the file will be like that

      @echo off

      set PATH=%PATH%;C:\MyPgm\Git\bin

      cmd

    • then run console2 ..from Main Menu > Edit > Settings > "Console" Node .. and press ".." button beside "shell" field ,select "*.bat" file type then select the file you created earlier OR write down the path to this file..(you can also set working directory in "startup dir")...save and restart

    that's it !! Enjoy !!