Hello Victor, I implemented your solution. Unfortunately I am observing some strange issues. I have several Python versions installed (2.6, 2.7, 3.1). It works fine for eric5 and Python 3.1. However, the same kind of batchfile doesn't work for the Python 2 variants and eric4. If I remove the "start" from the script, it is ok. What am I doing wrong?
Regards, Detlev On Freitag, 18. Februar 2011, Victor Varvariuc wrote: > I would like to suggest changing some of the .bat scripts for Eric on > Windows. I am using Eric5, but i think the same applies to Eric4. > > The problem with the eric5.bat is the following: > > While running a command line program or some GUI initiated from command > > line on Windows, there is always a black console window on the screen. > > This sometime becomes annoying. For example, when you start the Eric > > Python IDE on Windows, normally you start it by calling a batch file > > “eric4.bat” which calls the actual eric4.py script sequentially. Since > > Eric4 is designed to be a GUI program, the black console window has no > > use but it is there. > > http://9rivers.linkka.com/2010/07/29/hide-the-command-console-window-while- > running-a-guicommand-line-program-on-windows/ > > I found a way to start eric5.bat without the console window: > > @echo off > > rem Start Eric5 with command line parameters > > set CURRDIR=%~dp0 > > start "%CURRDIR%\pythonw.exe" > > "%CURRDIR%\Lib\site-packages\eric5\eric5.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9 > > This is not only hiding console window. It also uses relative pathes. So it > makes .bat scripts more portable. -- Detlev Offenbach [email protected] _______________________________________________ Eric mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/eric
