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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATH: getting the order right


On Tue, 28 Oct 2003 fergus@bonhard.uklinux.net wrote:

> I like putting c:\;c:\Cygwin\bin;c:\Cygwin\usr\X11R6\bin before
> c:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem in my Windows path.
> For the first tine I am using a computer that is administered by somebody
> else (I hate this more than I can say) and in My Computer -> Properties ->
> Advanced -> Environment variables I find the System-defined  path (what I
> want to come 2nd) necessarly precedes the User-defined path. Can anybody
> help me fix this ordering? Thank you. Fergus

Either use bash or create a batch file and set the PATH there...  E.g.,

CygCmd.bat:
	@echo off
	set PATH=c:\;c:\Cygwin\bin;c:\Cygwin\usr\X11R6\bin;%PATH%
	cd %HOMEDRIVE%%HOMEPATH%
	%SystemRoot%\system32\cmd.exe

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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