Command line arguments ClipsWin

  • Alexey Vinokurov

    Please, help me to modify source code of ClipsWin to automatically load and execute a batch file, which is specified as argument of a command line.

  • Gary Riley

    Gary Riley - 2010-08-29

    If you look at the WinMain source in WinMain.c (, there's a piece of code that looks for a file name in the command line argument and opens that file. For example,

       CLIPSWin "mab.clp"

    would open the file mab.clp.

    Rather than open the file, you could try replacing these lines

          if ((hEditWnd = text_New(hMainFrame,fileName)) != NULL)
            { text_Revert(hMainFrame,fileName,hEditWnd); }



  • Alexey Vinokurov

    Gary, thank you very much! It is working!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks