Weird execution of ruby/git executables in Windows

Posted by Frexuz on Super User See other posts from Super User or by Frexuz
Published on 2011-11-13T15:50:06Z Indexed on 2011/11/13 17:56 UTC
Read the original article Hit count: 294

Filed under:
|

Something strange has happened. I can't run some command line executables in Windows anymore.

Steps:

  • Open cmd
  • Run an executable, such as ruby -v or git -h

When I do that, a new command prompt opens, running that command (I think, it's too fast to see), and instantly closes again.

I've managed to print screen the new command prompt, and it shows that it's running inside this path:
C:\Documents and Settings\Administrator\Local Settings\Temp\3582-490

Inside this folder, is the executable I'm tring to run.
If I run ruby, then ruby.exe is in there.
If I run git, then git.exe is in there. And it's always emptying the folder in between, so there is always just one .exe file

© Super User or respective owner

Related posts about Windows

Related posts about command-line