ms speech from command line

My 2 cents on the topic, command line one-liners: on Win using PowerShell.exe PowerShell -Command “Add-Type –AssemblyName System.Speech; (New-Object System.Speech.Synthesis.SpeechSynthesizer).Speak(‘hello’);” on Win using mshta.exe mshta vbscript:Execute(“CreateObject(“”SAPI.SpVoice””).Speak(“”Hello””)(window.close)”) on OSX using say say “hello” Ubuntu Desktop (>=2015) using native spd-say spd-say “hello” on any other Linux refer to How to text-to-speech output using command-line? commandline function using … Read more

Cmd crashes with exit code 1 after uninstalling anaconda

The following answer was (supposedly) initially posted (but later removed) by @Mofi and I got it from the comment of @filippo-vicari. So all credits go to them, thanks for solving this issue! It took me hours to finally find their solution. Enter the following command into the still working powershell (in my case Anaconda Powershell): … Read more

Correct quoting for cmd.exe for multiple arguments

Note the “” at the beginning and at the end! Run a program and pass a Long Filename cmd /c write.exe “c:\sample documents\sample.txt” Spaces in Program Path cmd /c “”c:\Program Files\Microsoft Office\Office\Winword.exe”” Spaces in Program Path + parameters cmd /c “”c:\Program Files\demo.cmd”” Parameter1 Param2 Spaces in Program Path + parameters with spaces cmd /k “”c:\batch … Read more