Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The system cannot find the path specified" #121

Closed
tomasgonz opened this issue Jan 19, 2014 · 30 comments · Fixed by #450
Closed

"The system cannot find the path specified" #121

tomasgonz opened this issue Jan 19, 2014 · 30 comments · Fixed by #450
Assignees
Milestone

Comments

@tomasgonz
Copy link

I have cmder in a folder in dropbox. Although it works fine in windows 7, when I try to execute it in my computer at home (windows 8,1), the message "the system cannot find the path specified" appears once. Moreover, the same message appears after executing a command.

@MartiUK
Copy link
Member

MartiUK commented Jan 20, 2014

Do you get the same error when it's not in your dropbox folder? (on your Win8 PC)

@tomasgonz
Copy link
Author

I actually always get the error on windows 8.1, regardless of whether I have cmder on dropbox or somewhere else.

Many thanks for your help.

@MartiUK
Copy link
Member

MartiUK commented Jan 21, 2014

Hi could you retry downloading cmder.7z and extract it to a folder on your desktop and let me know what happens?

@tomasgonz
Copy link
Author

Hi, Unfortunately the same message - twice- saying that the system cannot find the path specified. Many thanks for your help.

@MartiUK
Copy link
Member

MartiUK commented Jan 24, 2014

Have you tried running cmder.exe as Administrator?

@laurent-indermuehle
Copy link

I installed cmder in C:\cmder on Win 8.1 Pro and I've the same problem.
I tried to run cmder.exe as Administrator but I got again "The system cannot find the path specified." when I type, per exemple, git.

My Path is :
C:\cmder\bin;
C:\cmder\vendor\msysgit\bin;
C:\cmder\vendor\msysgit\mingw\bin;
C:\cmder\vendor\msysgit\cmd;
C:\cmder\vendor\msysgit\share\vim\vim73;

@FreaKzero
Copy link

I have the exact same Issue on Win 8.1 - Is there a solution ?

@genericmoniker
Copy link

One idea:

When you download the zip file, but before extracting it, try going to the properties for the zip file and clicking the "Unblock" button. I've had problems with .exe, .bat, etc. coming from zip files where Windows blocks them to some extent unless the top-level zip is unblocked before extraction.

Not sure if that's the problem here, but worth a try.

I, on the other hand, always get "The system cannot find the path specified." when opening a new tab (through the New console dialog) with the "Run as administrator" box checked. The administrator console doesn't have the customized prompt (and possibly some other customizations that I haven't noticed) but otherwise works fine.

@FreaKzero
Copy link

Thank you for your reply, i tried your suggestion AND i tried to extract it with 7zip but with no success. Starting as Administrator was my first suspicion as i saw the Message, also no success.

@FreaKzero
Copy link

Hi all again, i found the Problem and i want to share that big bullsh....

Since i can remember i use Ansicon for an colored cmd.exe (PHPUnit...) in work and never had Problems or anything with it - not with Vista, not with XP and not with 7. Even now i have cmder AND Ansicon installed on my Work machine which is an Windows 7 machine - never had that strange errors.

Well ... on my private coding machine with Windows 8 - ansicon dont play nice with other Programs - i had the exact same Problem with the Sublime Text - Sublimerge Plugin and i began to investigate.

When you run into this "The system cannot find the path specified" Problem, have Windows 8 and ANSICON is installed - Delete the Ansicon Entries in the Registry there:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

That solved all my Problems.
Cheers!

@maxwowpow
Copy link

Hello, I'm using cmder on multiple machines for multiple users, so sometimes when new configuration is applied (e.g. new Windows User) it gets out of sync with Cmder's configuration.

Integration options:

  • context menu,
  • path variable
  • launch type (signle instance and so on)
    ...

Solution:

  1. When having a fully working version as I tweaked it, I exported an xml config (options > on top, "Storage") to some location.
  2. When some enivronment modifications break the functionality (aka e.g. "The system cannot find the path specified") this xml export location in options ("Storage") get set back to some default/another value.
  3. Go to options, click RESET button. Restart Cmder. The correct path and settings should appear in cmder.

Regards,
Max

@danimajo
Copy link

danimajo commented Aug 5, 2014

I had the same issue, somehow the %CMDER_ROOT% was not set properly when starting with administrative rights. Without admin rights everything is ok.

I ended with the solution to add a windows enivronment variable CMDER_ROOT pointing to my cmder dir. Not that beautiful, but it works.

@genericmoniker
Copy link

@danimajo - Thanks -- adding the CMDER_ROOT environment variable worked for me too.

@MartiUK MartiUK added this to the 1.2 milestone Apr 2, 2015
@MartiUK MartiUK self-assigned this Apr 2, 2015
@meeglos
Copy link

meeglos commented Apr 21, 2016

I followed @FreaKzero's comment on my regedit. What I actually found in the autorun entry was this:

"C:\Program Files (x86)\clink\0.4.5\clink" inject --profile "~\clink"

Now the annoying error message is gone.

@vrushabhkaushik
Copy link

No need to change anything in the regedit or anything, just go to the properties of the zip file & choose file explorer to unzip the file & unzip it with that. It didn't work with the WinRar but, File Explorer did it for me. I hope it helps. :)

@ransur0t
Copy link

ransur0t commented Nov 9, 2017

Similiar to @meeglos, my issue was related to clink, yet uses the same registry fix. Thanks @FreaKzero!

For context, the reason the registry key was an issue is due to some install/uninstall/reinstall attempts I made while trying to debug an issue with clink environmental aliases not working after Windows 10 Creator update earlier this year.

I eventually ended up leaving clink uninstalled because, while tab completion worked, the aliases themselves did not execute (command not recognized, etc).

If I had ran a utility like ccleaner after the debugging efforts, I suspect it would have removed the offending key for me. :)

Regards,

@RamiSingh
Copy link

Hi all again, i found the Problem and i want to share that big bullsh....

Since i can remember i use Ansicon for an colored cmd.exe (PHPUnit...) in work and never had Problems or anything with it - not with Vista, not with XP and not with 7. Even now i have cmder AND Ansicon installed on my Work machine which is an Windows 7 machine - never had that strange errors.

Well ... on my private coding machine with Windows 8 - ansicon dont play nice with other Programs - i had the exact same Problem with the Sublime Text - Sublimerge Plugin and i began to investigate.

When you run into this "The system cannot find the path specified" Problem, have Windows 8 and ANSICON is installed - Delete the Ansicon Entries in the Registry there:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

That solved all my Problems.
Thanks mate.

@HBenzaoui
Copy link

Hi all again, i found the Problem and i want to share that big bullsh....

Since i can remember i use Ansicon for an colored cmd.exe (PHPUnit...) in work and never had Problems or anything with it - not with Vista, not with XP and not with 7. Even now i have cmder AND Ansicon installed on my Work machine which is an Windows 7 machine - never had that strange errors.

Well ... on my private coding machine with Windows 8 - ansicon dont play nice with other Programs - i had the exact same Problem with the Sublime Text - Sublimerge Plugin and i began to investigate.

When you run into this "The system cannot find the path specified" Problem, have Windows 8 and ANSICON is installed - Delete the Ansicon Entries in the Registry there:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

That solved all my Problems.
Cheers!

Thanks dude, what a life saver ;)

@tek-shinobi
Copy link

tek-shinobi commented Dec 13, 2019

Had the same issue. Whenever I would run cmder, it would display "The system cannot find the path specified".

Tried everything mentioned on this page. Nothing worked. Finally found a clue "here". But since in my case it worked differently, am describing it here.

Firstly, I had to setup cmder_root environment variable separately. It points to the location of cmder on my computer.

Secondly: In cmder goto: Settings->Integration->ComSpec
Go all the way down:
cmder

I had to click on "Register ConEmu Autorun" and save settings and then the error went away.

What I realized was that it was unable to launch vendor/init.bat on start of cmder console. If above does not solve your issue, try opening the vanilla console (cmd.exe .. the DOS console) and try to launch the following command and see what you get:
$C:\cmder\vendor\init.bat

and then take it from there. (C:\cmder is the location of cmder on my computer)

@hossainrkb
Copy link

Hi all again, i found the Problem and i want to share that big bullsh....

Since i can remember i use Ansicon for an colored cmd.exe (PHPUnit...) in work and never had Problems or anything with it - not with Vista, not with XP and not with 7. Even now i have cmder AND Ansicon installed on my Work machine which is an Windows 7 machine - never had that strange errors.

Well ... on my private coding machine with Windows 8 - ansicon dont play nice with other Programs - i had the exact same Problem with the Sublime Text - Sublimerge Plugin and i began to investigate.

When you run into this "The system cannot find the path specified" Problem, have Windows 8 and ANSICON is installed - Delete the Ansicon Entries in the Registry there:

HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

That solved all my Problems.
Cheers!

a big round of applause for you bro !

@keocra
Copy link

keocra commented Jul 6, 2020

Hi everyone,
I observed the same issue but found a different reason. In "vendor/lib/lib_path.cmd" (

dir "%add_path%" | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL
) is a call which tries to identify if the folder path given to the script exists. If not, it produces the message "The system cannot find the path specified.". In my case some other script tries to add ...Git\mingw64\bin\usr\bin which does not exist on my system. As a quick fix I created the expected folder.

@jiashie
Copy link

jiashie commented Aug 25, 2020

Hi everyone,
I observed the same issue but found a different reason. In "vendor/lib/lib_path.cmd" (

dir "%add_path%" | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL

) is a call which tries to identify if the folder path given to the script exists. If not, it produces the message "The system cannot find the path specified.". In my case some other script tries to add ...Git\mingw64\bin\usr\bin which does not exist on my system. As a quick fix I created the expected folder.

same case! worked for me.

@daxgames
Copy link
Member

@keocra @jiashie what git do you have installed? Is it Git for Windows? 32 or 64bit?

I can see this happening if you have Cmder mini with 32bit Git for Windows installed. If you were using 64bit Git for Windows the folder would exist.

@zetazeroone
Copy link

Hi Everyone,

I'm on windows 10 having the same issue,

Everytime I type "cd Desktop" I get the "System cannot find the path specified" each time,

Any suggestions,

@daxgames
Copy link
Member

@zetaontherocks Is Desktop folder in the current folder? dir output or cd /d %userprofile%\Desktop

@zetazeroone
Copy link

@zetaontherocks Is Desktop folder in the current folder? dir output or cd /d %userprofile%\Desktop

No, it's not. I'm having success with cd %userprofile%/Desktop . What shall I do ? I am a bit confused and embarrased, ha.

@gancena
Copy link

gancena commented Oct 16, 2020

@zetaontherocks Is Desktop folder in the current folder? dir output or cd /d %userprofile%\Desktop

No, it's not. I'm having success with cd %userprofile%/Desktop . What shall I do ? I am a bit confused and embarrased, ha.

@zetaontherocks you can only cd into folders with cd _folder_ if you're in the same parent folder. You can tell what folder you're in with pwd then dir to list all the files and directories inside the directory that you're currently in.

@AsrorKhans
Copy link

I have the same problem with Windows 11. I installed last version cmder. But I cannot work with him. Error "The system cannot find the path specified". Someone can help me?

@hesammoosapour
Copy link

I deleted the Autorun in here:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Command Processor
I also added CMDER_ROOT for my user and in path as well:
image

But it still shows the same error!
Please tell me how to fix it.🙏

@marwandev-ps
Copy link

Hi everyone, I observed the same issue but found a different reason. In "vendor/lib/lib_path.cmd" (

dir "%add_path%" | findstr -i "\.COM \.EXE \.BAT \.CMD \.PS1 \.VBS" >NUL

) is a call which tries to identify if the folder path given to the script exists. If not, it produces the message "The system cannot find the path specified.". In my case some other script tries to add ...Git\mingw64\bin\usr\bin which does not exist on my system. As a quick fix I created the expected folder.

I tried and it worked, thx so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.