This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Environment variables



----- Original Message -----
From: "Suhaib Siddiqi" <ssiddiqi@inspirepharm.com>
To: "'Enoch Wu'" <ewu@eskimo.com>; "Robert Collins"
<robert.collins@itdomain.com.au>
Cc: "Cygwin-Xfree List" <cygwin-xfree@cygwin.com>
Sent: Thursday, April 12, 2001 9:12 PM
Subject: RE: Environment variables


>
>
> Let me explain it to you  why I put %OS%="" in startxwin.bat then i
will
> kill this thread, please.
>
> if you read carefully I have
>
> if %OS% == "Windows_NT" start /B Xwin............
> if %OS% == " " start XWin.............
>
> note /B difference.  The start /B is not valid on Windows9x
(incxluding ME)
> but /B option works on Windows NT/2000.  Windows 2000 sets in control
panel
> OS=Windows_NT
>
> Therefore if a user uses that batchfile on Windos 95 and
OS="Windows_NT" is
> not returned
> then it moves to next if statement and excute the Xwin without /B
option.

But it doesn't. Your batchfile is buggy. That's why I started a new
thread.

> Now this thread is dead after this.  What your system admin is doing
sounds
> to me a total
> nonsense, because he is changing OS ENV in control panel which Windows
sets
> and needs.  Your system admin acts of arbitrarily changing OS ENV had
> nothing to do with
> my startxwin.bat and I did not call him toget an advice how to use if
%OS%

I expect that _every_ Novell user in the world will have this happen.
It's not the sysadmin's fault.
It's the novell network client.

Anyway it shouldn't be needed anymore with the new X server. All I
wanted to do by starting the new thread was point out that the test for
OS="" is not valid for testing for win95. So that if a new batch file is
ever needed, it can be better.

if os != NT is valid, and something like
if "A%OSA" == "AWindows_NT" goto NT
goto 95

:NT
...
goto exit

:95
...
goto exit

:exit
^Z


would be much more reliable.

Rob

> ==
>
> Suhaib
>
> >
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]