When I run cmd in Windows 7 (by typing 'cmd' in Windows Run), the following error shows:'-p' is not recognized as an internal or external command, operableprogram or batch file.I have tried checking PATH in environment variables.Running echo%PATH% gives me the following:C:WindowsSystem32;C:Windows;C:WindowsSystem32WindowsPowerShellv1.0;C:xamppphp;I have checked all the directories being pointed to by PATH. Everything seems to be in place. What I can not understand is where '-p' is being called.
I'm thinking that it has something to do with cmd since it only comes out when I call cmd and not when I run ipconfig or ping, for example. It's possible that you have an 'AutoRun' command set in the registry.
There's two registry keys, one per-user and one per-computer, that can define commands that are run every time the command processor ( cmd.exe) is started. They're actually listed in cmd /?Anyway, try running cmd /d and see if that produces the same message. The /d flag means 'don't run AutoRun commands', which makes it perfect for testing this.The registry values are: HKEYLOCALMACHINESoftwareMicrosoftCommand ProcessorAutoRunHKEYCURRENTUSERSoftwareMicrosoftCommand ProcessorAutoRunCheck both. By default, neither should exist. You may wish to fix the command strings in yours, or even delete them entirely.Related:Alternatively, you could have a batch script or similar set up with the name cmd, which is being executed instead of the native cmd.
Try the command where cmd to print out a list of cmds in your path, in order of execution. If there are any other than/before the one in C:WindowsSystem32cmd.exe, you may wish to delete them, or remove their path from your PATH environment variable.
Closed as off-topic by, May 25 '18 at 15:20This question appears to be off-topic. The users who voted to close gave this specific reason:. ' Too localized - this could be because your code has a typo, basic error, or is not relevant to most of our audience.
C: xampp htdocslaravel new blog 'laravel' is not recognized as an internal or external command, operable program or batch file. I really want to use the 'laravel' command lines from the CMD.
Consider revising your question so that it appeals to a broader audience. As it stands, the question is unlikely to help other users (regarding typo questions, see for background).' – hot2use, Tom V, Colin 't Hart, Philᵀᴹ, Max VernonIf this question can be reworded to fit the rules in the, please. You might want to try the following instead: C:xamppmysqlbinmysql.exe -u root -passuming you are using a CMD / DOS PromptDepending on the path in which your mysql.exe resides, you might have to incorporate using double quotes as follows: 'C:Program Files (x86)mysqlbinmysql.exe' -u root -p'assuming you are using a CMD / DOS PromptYou add double-quotes from 'C.
![Xampp Xampp](/uploads/1/2/5/3/125391895/850264662.png)
To the end of the executable.exe' and then add double-quotes at the beginning of the whole command until the end. You end up with the above command.Reference: (Microsoft Support).