[GRASS-dev] [GRASS GIS] #1891: wingrass: background dosbox from regular wxgui startup

GRASS GIS trac at osgeo.org
Tue Apr 16 16:42:42 PDT 2013


#1891: wingrass: background dosbox from regular wxgui startup
----------------------+-----------------------------------------------------
 Reporter:  hamish    |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  major     |   Milestone:  6.4.3                    
Component:  Default   |     Version:  svn-releasebranch64      
 Keywords:  wingrass  |    Platform:  MSWindows 7              
      Cpu:  x86-64    |  
----------------------+-----------------------------------------------------

Comment(by hamish):

 > Replying to [comment:10 hamish]:
 > > ... is there a way in windows to run a .bat file without opening a dos
 box?

 Replying to [comment:11 glynn]:
 > AFAICT, if you execute a console program (such as cmd.exe) via Explorer,
 the
 > console is shown automatically (although you can configure it to
 minimise
 > the console).

 which is what we've done, but if you unminimize it it seems to remember
 that state for next time(?). at least with Windows7 the taskbar buttons
 gets grouped so it's less obvious there.


 > You can execute a .bat file from another program without the console
 being
 > shown. E.g. if the Python script:
 > {{{
 > import subprocess
 > subprocess.call('test.bat', shell=True)
 > }}}
 > is given a .pyw extension, running the .pyw file via Explorer will
 execute
 > the .bat file without a console being shown.

 (ok; & so run by pythonw.exe not python.exe)

 This is for the main grass64svn.bat Init script, which also needs to do
 -text and -tcltk without a working python, so I suspect it's more trouble
 that it's worth. Another alternative to get rid of it might be a tiny C
 program to launch the .bat file..

 here's a similar solution using a .vbs wrapper:
   http://www.tomshardware.com/forum/245566-45-batch-file-window-poping


 Perhaps in grass7 where the startup script is a .py it's simpler to do the
 .pyw wrapper?


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1891#comment:12>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list