python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does piping an external application to Select-Object -First 1 set $LastExitCode to -1?
I am trying to determine the path to the executable of git. Since there might be multiple executables found via PATH directories, I want to restrict the result to one path.
When using the following co...

René Nyffenegger
Votes: 0
Answers: 1
How do I get exit code of script run with mintty.exe?
In Windows, I'm excecuting a bash script using Cygwin64 and mintty.exe, this way:
mintty.exe -e C:\some_path\some_bash_script.sh
I need to capture the script's errors but %ERRORLOVEL% is always 0, eve...
stander
Votes: 0
Answers: 1
powershell Pipe Operators
I executed the following three powershell commands. The first two commands returned no results, and the third command returned results. The main difference between the three commands is the use of the...
jiligulu
Votes: 0
Answers: 1
The terminal process "C:\WINDOWS\System32\cmd.exe" terminated with exit code: 1
While computing the sum of Leaders in an array using Visual Studio Code, I encountered an error that said: "The terminal process "C:\WINDOWS\System32\cmd.exe" terminated with exit code:...

Rishabh Panda
Votes: 0
Answers: 1