I have a folder called C:\bin\ that I like to keep a lot of scripts and bat files in. One of those files is cmder.bat, which just opens cmder.exe in it's installation folder:

@echo off
start C:\Users\<Username>\cmder\cmder.lnk

C:\bin is the second item in my PATH variable.

I like to start cmder by hitting winkey + R and typing in cmder, and until recently it would open cmder for me. For whatever reason, typing cmder into the Run dialog now opens cmder's installation folder under C:\Users\<Username>\cmder in Windows Explorer.

Also, if I type cmder from cmd or powershell, it opens the program correctly and not the folder. It's only the Run dialog that opens the folder.

I have other programs that I like to start this way, and those still work without opening any folders or anything. I have even duplicated the setup on another Win 10 machine, and cmder in Run works as intended.

Does anyone know what changed or where I can look to get this back to the way it was?

  • Check to see if the executable is still in c:\bin or not and update your post whether it is or not. Other programs in c:\bin still working from command line indicates something changed about the cmder application. Perhaps the PATH has changed. Open up a command shell window and type the command set to get a list of your environment variables. Check the environment variable Path. The way Path finding works is that the paths in the semicolon delimited list are checked one by one until the application is found and the search stops. A Path order change might be the problem. – Richard Chambers Sep 30 '17 at 1:34
  • The bat file is still in C:\bin, and the PATH is correct. See above for another update. – neilsimp1 Sep 30 '17 at 2:02
  • Be sure the cmder.exe installation path is in the PATH env variable.Do from command prompt ECHO %PATH% and paste back the result output. – Pimp Juice IT Sep 30 '17 at 3:47
  • Add to your posting the contents of the cmder.bat file so that we can see what it is doing. The behavior sounds like there is a command to open the folder containing the target like doing a right click to open a shortcut link then doing a find target. Were there any changes to the cmder.bat file? – Richard Chambers Sep 30 '17 at 5:13
  • @Facebook it is the bat file in the bin folder, not the exe. This was working fine for the longest time. @RichardChambers Contents of cmder.bat added. – neilsimp1 Sep 30 '17 at 22:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.