473,396 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can't run csc.exe?

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
Sep 20 '07 #1
7 4135
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

"tshad" <tf*@dslextreme.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
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


Sep 21 '07 #2
tshad <tf*@dslextreme.comwrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 21 '07 #3
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

tshad wrote:
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

Sep 21 '07 #4
On Sep 21, 11:02 am, Leon Lambert <lambe...@inil.comwrote:
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

Sep 21 '07 #5
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP*********************@msnews.microsoft.com. ..
tshad <tf*@dslextreme.comwrote:
>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.
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
>
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Sep 22 '07 #6
"Leon Lambert" <la******@inil.comwrote in message
news:OU**************@TK2MSFTNGP03.phx.gbl...
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
>
Hope this helps
Leon Lambert

tshad wrote:
>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.NE T\
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
Sep 22 '07 #7
You didn't modify your path in the autoexec.dos file did you?

If so, modify autoexec.nt instead.

M2c

"tshad" <tf*@dslextreme.comwrote in message
news:OH**************@TK2MSFTNGP03.phx.gbl...
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

"tshad" <tf*@dslextreme.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
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


Sep 24 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: farzad | last post by:
Hi I try to install php_ming.so in my php . I am using Redhat 8.0 php 4.2.2 apache 2.0.4. I am doing as the howto install file want me to do. as follow....
7
by: Adams-Blake Co. | last post by:
This may be OT a bit, so maybe someone can point me in the right direction. I want to test a script that sends out an e-mail. I want to test it locally on my Mandrake Linux 8.2 box. It runs OK...
3
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
6
by: Michel | last post by:
Hi, I like to build a small simple dinamic website: Point-of-sale (detail-shop), So entering stock, logging all sales, print out invoices and download the logs to be imported into Excel. I...
3
by: nadia | last post by:
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user can search for something. The user can then select...
6
by: lawrence | last post by:
How dangerous or stupid is it for an object to have a reference to the object which contains it? If I have a class called $controllerForAll which has an arrray of all the objects that exist, what...
5
by: Alper Adatoz | last post by:
Hi, i have a little problem. i hope u guys give me a clear solution (: db: mssql i just want to put jpeg file to the image field at the mssql db. and after that i want to call it back..
2
by: Sam Hou | last post by:
Dear all, I don't know where my problem is. Hopefully someone can give me some hint to explore the problem more. I am running Apache 2.0.48 wih PHP 4.3.4. The apache is running as nobody. I...
14
by: NotGiven | last post by:
I am guessing I would hold a variable of when it's opened, then in the script that runs when the page is offloaded, I coudl calcualte it. How do you store a time variable? How do you calculate...
4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.