The Joel on Software Discussion Group (CLOSED)

A place to discuss Joel on Software. Now closed.

This community works best when people use their real names. Please register for a free account.

Other Groups:
Joel on Software
Business of Software
Design of Software (CLOSED)
.NET Questions (CLOSED)
TechInterview.org
CityDesk
FogBugz
Fog Creek Copilot


The Old Forum


Your hosts:
Albert D. Kallal
Li-Fan Chen
Stephen Jones

Managing the Path

Hi all

On the same Windows machine, I have dev tools for Symbian (that comes with its version of gcc), and I have MinGW (that comes with its version of gcc), and of course they both want to be first in the path.

So I have to manually edit the path every time I want to work on a project that's on the other platform. Obviously a PITA.

Do you experts out there know of a better way of dealing with this?

Thanks
28 Projects Later Send private email
Wednesday, May 13, 2009
 
 
Create a batch file that sets the path, and then launches the environment/app that you'll be working in?  ie one batch file for your gcc environment, and one for MinGW?
Doug Send private email
Wednesday, May 13, 2009
 
 
You can cook it right into a desktop icon by setting the Shortcut/Target to run a batch command before starting up the application.

i.e. in a Command Prompt "cmd.exe /K setpaths.bat"
or something like  "gvim --cmd setpaths.bat"
SumoRunner Send private email
Wednesday, May 13, 2009
 
 
i do something similar to the posts above. i use rapidee[1] to keep my environment variables clean. then i create a .bat for each programming environment and set various paths until all of them work.

i noticed that some need windows\system32, which i believe is a bad thing.

[1]: http://www.rapidee.com/en/about
Victor the Python Artist Send private email
Wednesday, May 13, 2009
 
 
Well... no magical solution I guess.
But thanks, I'll try that.
28 Projects Later Send private email
Wednesday, May 13, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz