![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
adding csc to Path Environment
Hi,
This should be trivial but I can't get csc.exe to run from any dir that I happen to be in. I had this setup before but just installed 'dotnet Framework v1.1 SDK'. I pasted my .cs file at: "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\" and I ran: "csc whatever.cs" works fine there. so I added that path to my environment variable 'path', but csc still didn't work from any dir EG. "C:\JMS\CSHARP\Soduku". Strange! Closer inspection revealed csc.exe is not in: "C:\Program Files\Microsoft.NET\SDK\v1.1\Bin" but is actually in: "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 so I added that dir to my 'path' too. It still doesn't work. How do I get this working so I don't have to worry about the path to csc.exe when I'm compiling? Thanks,
__________________
-- pr0gm3r |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Does it actually show up when you look at System Properties, Environment Variables, System Path, or when you type "path" at a command prompt? In other words, did the addition "take"?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
The path is now managed by Windows 2000 / Windows XP and not the autoexec.bat or autoexec.nt files. To change the system environment variables follow the below steps.
1) From the desktop right click My Computer and click properties. 2) In the System Properties window click on the Advanced tab. 3) In the Advanced section click the Environment Variables button. 4) Finally, in the Environment Variables window highlight the path variable in the Systems Variable section and click edit. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 | |
|
Hobbyist Programmer
|
Quote:
Thank you for all your input
__________________
-- pr0gm3r |
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
when you type 'set' at the prompt, what do you see?
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#6 | |
|
Hobbyist Programmer
|
Quote:
Thank you
__________________
-- pr0gm3r |
|
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() ![]() |
Glad you got it working...
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|