title: Command Line Variable for .NET Framework
body: <p>I'm trying to write a batch file that installs a windows service using installutil.exe.  I would like to use the installutil.exe that is in the latest version of the .Net Framework (located in C:\Windows\Microsoft.NET\Framework\v4.0.30319 on my machine).</p>
  
  <p>Is there an easy way to change the directory in the command line to the latest .NET Framework directory?</p>
  
  <p>For example, I know using <strong>cd %WINDIR%</strong> will give me <strong>C:\Windows</strong>.  What would I type to get to the latest .Net Framework Directory?</p>