User forums > Help
%PATH% modified by Code::Blocks
Folco:
Hi,
I have some trouble. I run under Win XP SP3.
- When I use a terminal on the desktop, I get that :
:> echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:WINDOWS\system32\Webm;C:\Program Files\GCC4TI
Note the "C:\Program Files\GCC4TI" which allows me to run a custom compiler I use with Code::Blocks.
- When I use the Tool I created under C::B (it juste calls cmd, the Win32 terminal), I get that :
:> echo %PATH%
C:\Program Files\CodeBlocks\MinGW\bin;C:\WINDOWS\system32;C:\WINDOWS;C:WINDOWS\system32\Webm;C:\Program Files\GCC4TI
Note that when C::B runs cmd.exe, it add a path to some unix tools in the path, but it removes my own tools !
Why ? How can I solve that ? I am used to run a terminal from C::b under Linux, without exiting C::B itself, by pressing a simple key. Under Win, I can't.
Is it a bug ?
stahta01:
This is NOT a bug; this is works as designed.
Code::Blocks adding its path is correct.
Why do you think CB is removing a path; since what you posted did NOT support that statement?
--- Quote from: Folco on September 05, 2011, 03:29:04 pm ---I am used to run a terminal from C::b under Linux, without exiting C::B itself, by pressing a simple key. Under Win, I can't.
--- End quote ---
The tool menu lets me run "cmd" under windows 7 32bit.
The single key thing might be keybinder; I do not use keybinder.
Tim S.
Folco:
--- Quote ---This is NOT a bug; this is works as designed.
--- End quote ---
So C::B is designed to remove some parts of %PATH% defined under ths OS ?!? Oh God, C::B acts like a virus :shock:
--- Quote ---Code::Blocks adding its path is correct.
--- End quote ---
Yes, why not.
--- Quote ---Why do you think CB is removing a path; since what you posted did NOT support that statement?
--- End quote ---
I don't understand. I don't think C::B removes something, I notice that.
(sorry if I don't understand all what you mean, my english is bad)
stahta01:
If you think it really is a bug; post directions on how to duplicate the bug!
Tim S.
Folco:
- Under Win XP, change the system (or user) variable %PATH% in the "System Properties -> Advanced -> Environment variables" (I translate from french).
- Add to it a path to a folder of your choice ("c:\Program Files\GCC4TI" in my case)
- launch C::B
- run a terminal (cmd.exe) from the "Tools" menu.
- run the command echo %PATH%
It seems that C::B has removed the entry you added manually.
Navigation
[0] Message Index
[#] Next page
Go to full version