Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 7th, 2005, 10:43 PM   #1
pr0gm3r
Hobbyist Programmer
 
Join Date: Dec 2004
Location: CA
Posts: 102
Rep Power: 4 pr0gm3r is on a distinguished road
Send a message via MSN to pr0gm3r
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
pr0gm3r is offline   Reply With Quote
Old Sep 7th, 2005, 10:53 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Sep 8th, 2005, 8:12 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,453
Rep Power: 7 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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.
Attached Images
File Type: jpg cscpath.JPG (37.9 KB, 21 views)
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Sep 8th, 2005, 10:01 AM   #4
pr0gm3r
Hobbyist Programmer
 
Join Date: Dec 2004
Location: CA
Posts: 102
Rep Power: 4 pr0gm3r is on a distinguished road
Send a message via MSN to pr0gm3r
Quote:
Originally Posted by Infinite Recursion
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.
hmmm.. I have tried that... ok.. I'll give another try...

Thank you for all your input
__________________
--
pr0gm3r
pr0gm3r is offline   Reply With Quote
Old Sep 8th, 2005, 10:20 AM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,453
Rep Power: 7 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Old Sep 8th, 2005, 8:28 PM   #6
pr0gm3r
Hobbyist Programmer
 
Join Date: Dec 2004
Location: CA
Posts: 102
Rep Power: 4 pr0gm3r is on a distinguished road
Send a message via MSN to pr0gm3r
Smile

Quote:
Originally Posted by Infinite Recursion
when you type 'set' at the prompt, what do you see?
finaly... I got it work... some how I need to disactivate my other Applications "Win Desktop Manager"

Thank you
__________________
--
pr0gm3r
pr0gm3r is offline   Reply With Quote
Old Sep 9th, 2005, 8:52 AM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,453
Rep Power: 7 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
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."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:21 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC