Category "windows"

Is there a way to listen to mouse event in windows?

I want to write a script that runs a specific PowerShell command when one of my mouse's additional buttons is clicked. Example: Clicking the third mouse's butto

WSL and serial port

I am using Win10 and Linux Ubuntu on WSL 2.0. For testing purposes of some programs, I would like to use the serial port of my PC in "loopback" with Linux runni

Python 3.8.6 says I have a newer version of Python installed, but I don't

I just installed Python 3.9.0 and I found out Pygame hasn't been fully released yet in this Python version. I then tried to uninstall Python and it said it unin

CMD/BAT get date modified of all filenames and append to their filename

I am having trouble with this script. I'll explain below the codeblock. @Echo off pushd "\\server\folder" SETLOCAL EnableDelayedExpansion @FOR /F "TOKENS=2"

How to get .vbs output in the same window of a .bat file [duplicate]

I have a batch file that does a lot of different things and within that batch file, at some step, I'm running a VBS script. The problem is, th

Docker Prometheus not starting

just on this page described, i'am trying to start on my windows docker prom/prometheus with git-bash: docker run \ -p 9090:9090 \ -v /C:/Users/Bob/serv

How to monitor for new evets in eventlog and trigger an action

I would like to know the logic or the piece of powershell code that can be used to monitor for a service shutdown event and trigger an action. So when the servi

How to launch a new WSL bash window from an existing WSL bash window

I am struggling to figure out how to launch a new "command prompt" window via a bash command in WSL. The goal is to launch a second prompt preferably already in

Stopping Vmmem from using RAM

I am using Docker to run some containers on Windows 10, and when I was done I noticed an application named vmmem was using almost all of my ram: ~12GB. Accordin

Add notification to Windows notification center without displaying it on screen

I am building an Electron app featuring a custom Notification feature where html5 divs appear and disappear as needed on a frameless, transparent, always-on-top

Multiple values single data trigger WPF

I have the following piece of code. <Button.Style> <Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKe

Windows: Programmatically create compatibility mode registry key for DVD or CD

I'm looking to programmatically run through an installation disc and set the compatibility mode for hundreds of exe's & msi's. But I've run into a snag. For

How to Shorten Git Bash Prompt (Windows)

How do I shorten my git bash prompt from something like this Malik@LAPTOP-7R9912OI MINGW64 ~/Desktop/test $ to something like this Malik@test$ I am using

Is there a kernel mode API that allows safe access to ntoskrnl.exe address space

I'm just playing around for fun only(on Windows 8.1) with kernel mode address space trying to see if I can access the address space belonging to ntoskrnl.exe fr

importing pyttsx3 in python3.8 and found an error

I downloaded pyttsx3 in command prompt I have a big error this the code: import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runA

Programmatic control of virtual desktops in Windows 10

I love that Windows 10 now has support for virtual desktops built in, but I have some features that I'd like to add/modify (e.g., force a window to appear on al

In Windows Server, check the Task Manager, the GlassFish's User name changed from SYSTEM to the login user 's name after some subcommands

Here’s an issue I encountered when I was running GlassFish 5.0 on Windows Server 2016. Check from the Task Manager -> Details -> U

application compatibility on ARM for Windows

I am testing application compatibility on ARM for Windows. I have 4 applications built by VisualStudio 2017 for following platforms: ARM32, ARM64, Win32, x64. A

Unable to load resource (.resx) file because it is not trusted

I am facing an issue while building windows source in Visual studio 2017. Showing the error message mentioned in the title. Anyone have any idea about this err

open a specified path in cmd in windows

I want to open a specified path in vscode in windows 10 and I know there is a command that do this: path> code . but my problem is, how can I open a specifie