Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dvnm not a recognized as an internal or external command,operable program or batch file

Tags:

asp.net-core

when you try to run "dnvm list" or any of "dnvm" commands in the command promt i get the error

"dvnm not a recognized as an internal or external command,operable program or batch file"

I have already installed visual studio 2015 on my windows7 pc.

like image 989
Ram Avatar asked Oct 14 '15 15:10

Ram


People also ask

What is not recognized as an internal and external command?

The “Python is not recognized as an internal or external command” error is encountered in the command prompt of Windows. The error is caused when Python's executable file is not found in an environment variable as a result of the Python command in the Windows command prompt.

How do I fix not recognized as an internal or external command operable program or batch file?

You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add the program path to Windows environment variables. Finally, move the files to the System32 folder.

Is not recognized as an internal or external command batch file?

The “is not recognized as an internal command” error usually occurs because the computer can't find the executable that you're asking it to launch. However, you can provide it with the full path to your executable file and it should then be able to run it without any issues.


1 Answers

  1. Install Powershell 4.0
    http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx

  2. Run the below command in command prompt

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc.DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

or the below command in powershell

&{$Branch='dev';$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc.DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

ref : asp.net /home github site Upgrading DNVM or running without Visual Studio

  1. run command in command prompt

dnvm list

The command promt may ask you that you dint have any and install the latest say yes and it installs successfully.

Sample output is shown below

C:\Windows\system32>dnvm list

Getting started It looks like you don't have any runtimes installed. Do you want us to install a DNX to get you started? [Y] Yes [N] No

[?] Help (default is "Y"): y

Determining latest version Downloading dnx-clr-win-x86.1.0.0-beta7 from https://www.nuget.org/api/v2 Installing to C:\Users\YourAdminUserName.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7 Adding C:\Users\YourAdminUserName.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to process PA .....and so on

That it you are ready to roll..

like image 108
Ram Avatar answered Oct 14 '22 17:10

Ram