cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.81k stars 2.02k forks source link

'findstr' is not recognized as an internal or external command #1213

Closed emmanuelnk closed 7 years ago

emmanuelnk commented 7 years ago

On version 161206 and get the error 'findstr' is not recognized as an internal or external command when the command console opens up. I fixed it by getting findstr.exe from C:\Windows\System32 and copying it to cmder\bin. I'm not sure this is a good fix for this issue though so I'm reporting it.

Jackbennett commented 7 years ago

echo %path% will list all the folders (separated by semicolon ';') in the order it will search for <program>.exe so if you look through those can you find the command where it's supposed to be?

use this from the powershell task if you want; $env:path.split(';') | gci -Filter 'findstr.exe'

It must be in that folder in the path, it will not look inside subfolders.

glucas commented 7 years ago

If you don't have C:\Windows\System32 on your PATH then you will probably have lots of issues. By default cmder does not remove these entries, any chance you are modifying your PATH variable somewhere in your cmder configuration? You can try starting a cmd.exe shell directly and seeing what the PATH is there (set PATH), or check the Windows environment variables via the system properties dialog.

Jackbennett commented 7 years ago

I suspect you've used assign = where it should be append += when adding something to your path. Check your profile for a line like that with $env:Path

ankitakalgut commented 4 years ago

Solution :- Edit the Path to include C:\Windows\System32

daxgames commented 4 years ago

@ankitakalgut I edited your response to be more appropriate. Simply setting the path as you originally recommended woumd break a lot. Also what is Anypoint Studio and whay does it have to do with this issue?

Jackbennett commented 4 years ago

Profile full of single commit repos? Looks like an astroturfing bot. I've edited the comment to remove the product placement and reported.

GOKULPRAVI commented 4 years ago

C:\Users\Gokul P\Desktop\tekhno\logstash-7.5.0\bin>logstash 'findstr' is not recognized as an internal or external command, operable program or batch file. Error: Could not find or load main class P\Desktop\tekhno\logstash-7.5.0\logstash-core\lib\jars\animal-sniffer-annotations-1.14.jar;C:\Users\Gokul

GOKULPRAVI commented 4 years ago

plse help me

daxgames commented 4 years ago

@GOKULPRAVI Cmder Version?

daxgames commented 4 years ago

@GOKULPRAVI out put of set path?

ghost commented 3 years ago

still not working. Same error.

Jackbennett commented 3 years ago

What's in your PATH, what cmder version, what's where findstr produce in cmder, what about in just cmd.exe and another profile of single commit repos, are you a robot? If none of the above works out can you make a new issue, this one has no content.