4 ms·
Most of the time I just want to run some program in some folder in the console to try getting the log output, so I right-click in explorer "open command window
by Krssst 2y ago
Most of the time I just want to run some program in some folder in the console to try getting the log output, so I right-click in explorer "open command window here" and just type the program name.
With PS that's ".\program" (~like in bash, two more chars) to make it happy, which is two more characters for no win at all in my use case (anything more complex gets some variant of bash/fish rather than PS, plus Windows Terminal). So I just use regular cmd (and add it back to the explorer context menu since Windows removed the option).
Though 97% of me not using PS in that case is mostly it feeling like yet another thing Microsoft is trying to force on me. But I agree that in that case it's me getting stuck in my old ways and pushing users out of cmd seems to make sense.
- WorldMaker 2y agoThe nice thing about needing the extra .\ is great tab completion. If your output folder only generates the one EXE then .\ then Tab is sometimes all you need. For "program.exe" you can save 4 characters (a "gram", if you like). You can even write it as ./ then Tab to save a shift keypress (especially if you have bash habits).