Quantcast
Channel: Windows Archive - TechOverflow
Browsing latest articles
Browse All 17 View Live

How to set Windows audio balance using Python

In our previous post we showed how to set the Windows audio volume using pycaw. First, we install the library using pip install pycaw Note: pycaw does not work with WSL (Windows Subsystem for Linux)!...

View Article


How to auto-set Windows audio balance to a specific L-R difference using Python

When you can’t place your speakers equally far from your ears, you need to adjust the audio balance in order to compensate for the perceived difference in volume. Windows allows you to compensate the...

View Article


How to find out if your WSL Ubuntu is running on WSL1 oder WSL2

In order to find out if your Ubuntu or other WSL linux installation is running on WSL1 or WSL2, open a Powershell and run wsl --list -v This will show you all WSL installations and the associated WSL...

View Article

How to make PowerShell output error messages in English

If you want to see a PowerShell output (e.g. an error message) in english instead of your local language, prefix your command by [Threading.Thread]::CurrentThread.CurrentUICulture = 'en-US'; For...

View Article

How to generate filename with date and time in PowerShell

You can use Get-Date like this to generate a date that is compatible with characters allowed in filenames: Get-Date -UFormat "%Y-%m-%d_%H-%m-%S" Example output: 2020-12-11_01-12-26 In order to generate...

View Article


How to fix Windows “echo $PATH” empty result

When you try to run echo $PATH you will always get an empty result. Instead, if you are in cmd, use echo %PATH% but if you are using PowerShell, you need to use $env:PATH  

View Article

How to print PATH environment variable in PowerShell (Core)

Run $env:PATH to show the PATH environment variable in PowerShell.

View Article

How to fix Visual Studio Code still not finding binary after changing PATH...

Problem: Your Visual Studio Code integrated shell on Windows still doesn’t find a binary (e.g. a Python binary) even though you have just added it to the PATH environment variable and have opened a new...

View Article


How to fix Python ModuleNotFoundError: No module named ‘cv2’ on Windows

Problem: You see an error message like the following one when running some Python code on Windows: Traceback (most recent call last): File "<stdin>", line 1, in <module> File...

View Article


Windows Auto-Login registry .reg file generator

This generator allows you to generate a .reg registry file to autologin any user (even admin users), allowing for basically a one-click installation. Tested with Windows10. Your inputs are not sent to...

View Article
Browsing latest articles
Browse All 17 View Live