This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
tweak to startxwin.bat
- From: "Andrew G. Wilson" <agwilson at rhetorical dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 18 Mar 2002 15:02:03 +0000
- Subject: tweak to startxwin.bat
Just a quick note to whoever looks after the startup .bat file:
You can use the dos %VAR% to set the /B switch or not, thereby reusing
the same commands for the nt/2000 as for 95/98.
cheers
Andrew
REM
REM Use the /B switch only when we can positively confirm that the OS
REM is Windows NT/2000. Do not use the switch in any other case. This
REM should work fine, as it assumes we cannot use /B, except when a
REM criteria is met. A previous verion of this batch file assumed that
REM we could use /B, except when some criteria was met; needless to say,
REM that didn't work.
REM
if "%OS%" == "Windows_NT" set USE_B=/B
REM Startup the X Server.
start %USE_B% XWin -screen 0 1152 864
REM Startup an xterm, using bash as the shell.
start %USE_B% xterm -sl 1000 -sb -rightbar -ms red -e /usr/bin/bash
REM Startup the twm window manager.
start %USE_B% twm