"devenv" command is not recognized - visual-studio-2013

I have downloaded and installed Visual Studio 2013 Express (from here)
When i try to run the command devenv I get an error -

Related

'Command "devenv.exe" is not valid' error in Visual Studio 2015 command window

I am attempting to use the Visual Studio 2015 Command Window to in order to diff two files, using the command devenv.exe /diff "C:\example.path" "C:\example.path". I received the following error:
Command "devenv.exe" is not valid.
devenv.exe was missing from my computer so I repaired both my installation of (both) Visual Studio 2015 and Visual Studio 2013 to get it back. However, I'm still getting the error when I attempt to run the /diff command.
What steps should I take in order to resolve this issue?

Visual Studio 2015 Installation corruption

I installed Visual Studio 2015 and shortly after selecting a TFS server started to experience issues:
missing package errors
new project had no project types
Team explorer has an error tag (Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found.)
If I go to Team and click manage connections I get an error (Team Foundation Error Page '3185ed96-1cbcd-4381-a439-636973542e50' not found.)
If I try to re-open the solution I pulled down I get:
(The 'ErrorListPackage' package did not load correctly)
(The 'CSharpPackage' package did not load correctly)
(The 'FileIndicatorPackage' package did not load correctly) and fails to open
Then I get an 'object reference not set to an instance of an object) when I try to close VS.
I tried running the devenv.exe commands to rest everything to no avail:
devenv.exe /debug
devenv.exe /resetsettings
devenv.exe /instalvstemplates
devenv.exe /resetskippings
devenv.exe /resetuserdata
devenv.exe /setup
devenv.exe /safemode
I tried repair: still broken
I uninstalled and reinstalled: still broken
The Fix
Uninstall Visual Studio 2015 from Programs and Features
Reboot machine if prompted.
Rename or delete folders-
C:\Program Files (x86)\Microsoft Visual Studio 14.0
C:\Program Files\Microsoft Visual Studio 14.0
<user>\Documents\Visual Studio 2015
<user>\AppData\Roaming\Microsoft\VisualStudio\14.0
<user>\AppData\Local\Microsoft\VisualStudio\14.0
<user>\AppData\Local\Microsoft\VSCommon\14.0
Go to the registry editor (start >> run >> regedit) and remove/rename the following registries-
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
HKEY_CURRENT_USER\Software\Microsoft\VSCommon\14.0
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Remote
Install Visual Studio 2015

Access Visual Studio Developer Command Prompt from regular Command Prompt

This related question shows how to build and run a Visual Studio solution from Visual Studio Developer Command Prompt. My question is, is it possible to build and run a Visual Studio solution directly from the regular Windows Command Prompt (cmd.exe)?
Finally, I found the answer.
Access VS Developer Command Prompt from regular command prompt.
C:\Users\Hwathanie>cmd.exe /k ""C:\Program Files (x86)\Microsoft Visual
Studio 12.0\VC\vcvarsall.bat"" x86
Build the solution.
C:\Users\Hwathanie>msbuild "C:\Users\Hwathanie\Documents\Visual
Studio 2013\Projects\MyProject\MyProject.sln" /p:Configuration=Debug
Run the exe file created.
C:\Users\Hwathanie>"C:\Users\Hwathanie\Documents\Visual Studio 2
013\Projects\MyProject\bin\Debug\MyProject.exe"

Use the devenv command to run a specific version of Visual Studio

We have both Visual Studio 2010 and 2012 installed on our machine. Often we want to run it with the devenv command. To be clear, we want to open Visual Studio. How do we pass the version number to run? The devenv command line documentation doesn't say how.

I get "operation cannot be completed" when i try to open visual studio 2010?

Hi I am getting the operation cannot be completed error when i tried to open Visual studio 2010. Previous to that I was trying to install web platform and didnt install but that is all I did...anyone have suggestions...i tried restart my pc...
Try devenv /setup, devenv /resetsettings, or devenv /resetuserdata. Important: only try the last two as a last resort since they will reset your settings.
Assuming you're on a 32-bit OS, devenv is available from the command-line at \Program Files\Microsoft Visual Studio 10.0\Common7\IDE or from the VS command prompt.

Resources