May 2, 200422 yr Hi everyoneMy 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
May 17, 200422 yr reg query hklm\SOFTWARE\Microsoft\.NETFramework\ /v sdkInstallRootwill 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\Windows\CurrentVersion\SharedDLLs | find "csc.exe" C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe.config REG_DWORD0x1 C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe REG_DWORD0x1 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe.config REG_DWORD0x1 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe REG_DWORD0x1maybe its an option to just add then bothhope this helpsgr /\/\o\/\/
Create an account or sign in to comment