Can't run csc.exe?

T

tshad

Can't seem to get csc.exe to run from my home machine which has asp.net 1.1
installed.

I added the path variable and in the command prompt where I am running my
make file I am getting the error:

'csc' is not recognized as an internal or external command,operable program
or batch file.

I added the path of the csc.exe file to the path system environment
variable.

Path=C:\execupay;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Prog
ram Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Microsoft SQL
Serv
er\80\Tools\Binn\;C:\Program
Files\QuickTime\QTSystem\;C:\WINDOWS\Microsoft.NET\
Framework\v1.1.4322

Here is the address from Windows Explorer:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

Here is the makefile:

attrib user.dll -r
csc /t:library User.cs /r:system.web.dll /r:system.data.dll /r:system.dll
/r:system.xml.dll /r:nullHandler.dll /r:DBTypes.dll /r:DBObject.dll
attrib ..\bin\User.dll -r
copy User.dll ..\bin\*.*

Here is the result:
*******************************************************
C:\Inetpub\wwwroot\Interez\Classes>makeuser

C:\Inetpub\wwwroot\Interez\Classes>attrib user.dll -r

C:\Inetpub\wwwroot\Interez\Classes>csc /t:library User.cs /r:system.web.dll
/r:s
ystem.data.dll /r:system.dll /r:system.xml.dll /r:nullHandler.dll
/r:DBTypes.dll
/r:DBObject.dll
'csc' is not recognized as an internal or external command,
operable program or batch file.

C:\Inetpub\wwwroot\Interez\Classes>attrib ..\bin\User.dll -r

C:\Inetpub\wwwroot\Interez\Classes>copy User.dll ..\bin\*.*
1 file(s) copied.

C:\Inetpub\wwwroot\Interez\Classes>
**********************************************************

I had closed and restarted another command windows after adding the
environment variable and as you can see it is in the path.

What else am I missing?

Thanks,

Tom
 
T

tshad

What I don't understand is that this was run using cmd.exe - which is the
newer command prompt.

If I run this using command.com, it works fine. But this is the older msdos
command prompt.

Why doesn't the newer program run it - it is in the path and obviously the
older program doesn't have a problem with it?

Thanks,

Tom
 
J

Jon Skeet [C# MVP]

tshad said:
What I don't understand is that this was run using cmd.exe - which is the
newer command prompt.

If I run this using command.com, it works fine. But this is the older msdos
command prompt.

Why doesn't the newer program run it - it is in the path and obviously the
older program doesn't have a problem with it?

Had you opened the command prompt before you change the environment
variables, by any chance? Changes don't affect existing command
prompts, only new ones.
 
L

Leon Lambert

You probably need to execute vsvars32.bat to setup the environment
before you can us it. Following is where it is in my system \Program
Files\Microsoft Visual Studio 8\Common7\Tools\

Hope this helps
Leon Lambert
 
J

Jon Skeet [C# MVP]

You probably need to execute vsvars32.bat to setup the environment
before you can us it. Following is where it is in my system \Program
Files\Microsoft Visual Studio 8\Common7\Tools\

Just the path should be enough - that's what I've tended to use,
historically.

Jon
 
T

tshad

Jon Skeet said:
Had you opened the command prompt before you change the environment
variables, by any chance? Changes don't affect existing command
prompts, only new ones.

I did and I even restarted the machine. You can see in the Path variable
that the path is there. And command.com works.

Tom
 
T

tshad

Leon Lambert said:
You probably need to execute vsvars32.bat to setup the environment before
you can us it. Following is where it is in my system \Program
Files\Microsoft Visual Studio 8\Common7\Tools\

Nope.

Tried that in C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools, but it still doesn't work, nor does vbc.

Something is cmd.exe is preventing it from running, since command.com works
fine.

Thanks

Tom
 
N

NayJo

You didn't modify your path in the autoexec.dos file did you?

If so, modify autoexec.nt instead.

M2c
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top