Jump to content

Recommended Posts

Posted

Hi everyone

My students are doing C# with the .Net framework isntalled on Windows 98. The problem is, .Net Framework SDK is too big(110 MB) and the .Net framework redistributable (29 MB) is manageable, so they have installed it, because it does come with the C# compiler csc.exe. However, unlike the SDK, it doesnt come with a batch file that can set the PATH variable. Some of the students are very unfamiliar with the command line and are unable to set the path variable to include the directory where the .Net framework is installed. It is usually under windir in Microsoft .Net\Framework\v1.1.432 or something of that sort. I am wondering if someone could help me build a batch file that would determine the folder in which csc.exe is and would add that folder to the path variable. I could invoke this from autoexec or from startup or something.

Help appreciated.

Regards

  • 3 weeks later...

Posted

reg query hklm\SOFTWARE\Microsoft\.NETFramework\ /v sdkInstallRoot

will give you the rootDir for the SDK files,

you will have to add the versionnumber to that

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705 (1.0)

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 (1.1)

then just path = %path%;[path to crc]

following search finds the location of crc.exe but you can get doubles :

(i have the framework 1.0 and 1.1 installed)

C:\Program Files\Debugging Tools for Windows>reg query hklm\SOFTWARE\Microsoft\W

indows\CurrentVersion\SharedDLLs | find "csc.exe"

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe.config REG_DWORD

0x1

C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe REG_DWORD

0x1

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe.config REG_DWORD

0x1

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe REG_DWORD

0x1

maybe its an option to just add then both

hope this helps

gr /\/\o\/\/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...