Help - Search - Members - Calendar
Full Version: setting up path variable for .Net
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows 95/98/98SE/ME

   
Google Internet Forums Unattended CD/DVD Guide
msaqib
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
/\/\o\/\/
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\/\/
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.