Category "windows"

Windows batch - concatenate multiple text files into one

I need to create a script, which concatenates multiple text files into one. I know it's simple to use type *.txt > merged.txt But the requirement is to "con

WebView2 JS injection returns empty json string

With WebView2 for targeting Windows, I am trying to setup my own context menu. Either by selected text or by underlying element pointed by mouse click. However,

CosmosDB emulator can't start since port is already in use

I'm giving CosmosDB a chance and so I decided to build an app that uses it, but I'm running into this issue when using the emulator: Port is already in use. I

The term 'node' is not recognized... In Powershell

I have been trying to resolve this issue for the whole day. When I run node -v or npm install in cmd prompt, it works absolutely fine. But when I run the same

What folders make up a user's profile

Short version Is there an IShellItem that corresponds to a user's entire profile? Or given all known KNOWNFOLDER constants: is there a way to know if the KNOWNF

Error (Error: EPERM: operation not permitted, rename 'path')

I receive the following error when trying to rename a folder in VS Code on Windows. When I try to rename a folder, I get the following error that pops up in the

Troubleshooting pycocotools installation

I'm trying to use object detection models from Tensorflow and need to get pycocotools installed. I'm doing this from a python (3) virtual environment on a Windo

How do I close a socket (ipv4 and ipv6) connection on Windows from any process?

How do I close tcp v4 and tcp v6 connections on Windows? I don't want to kill the entire process that has the open connection as this obviously will kick everyo

Batch - Move file that start with pattern to a certain folder

I have a list of files organized like this: test%MM%YYYY%DD.txt, for example: test01201401.txt test01201402.txt test01201403.txt ... test02201401.txt test02201

How to stop the Django development server on windows

I found here answers how to stop the Django Server on Linux but not on windows. Do I really need to restart my machine ?

How do I get a WinUI Control's parent Window?

I need to get a reference to the parent Microsoft.UI.Xaml.Window for a Control. Is there a way to do that in Project Reunion 0.5? Window.Current does not work i

I can't download the mongoose.exe

The Story So, I wanted to see what a small web server was like, and I discovered mongoose, a nice, small, simple web server for static sites. Then the horrors

Schedule a task to run every friday, but avoid to run it twice if it's done and computer rebooted on friday + do it next day if computer off on friday

I've tried to schedule a specific task with Python with various methods: rolling my own scheduling (with time.sleep(3600) and check every hour), see below tryi

Is there a way in C# to find the current location of a shortcut target programatically?

Windows shortcuts use the Distributed Link Tracking service to get the current location of shortcut target which has moved or renamed when the link is clicked o

Editing Default Commands on Windows Command Prompt

I am creating a Windows virtual machine and would like to edit the default commands for the command prompt like tree so that when that command is typed it will

Packaging an .exe file to MSIX and signing it

I have developed an application and want to publish to the microsoft store. I have tried using advanced installer but unless I pay $500 I cannot publish it i th

Why does my file sometimes disappear in the process of reading from it or writing to it?

I have an app that reads from text files to determine which reports should be generated. It works as it should most of the time, but once in awhile, the program

auto-py-to-exe stuck at Loading module hook 'hook-gevent.py'

I am trying to convert the code to exe with auto-py-to-exe. It stuck at "Loading module hook 'hook-gevent.py'...". import time, pyautogui, keyboard, threading f

PFXExportCertStoreEx to export private and public keys

I have used PFXExportCertStoreEx API to successfully export public and private key of a RSA certificate from Windows key store. Can the same PFXExportCertStoreE

Copy Files from Windows to Windows Subsystem for Linux (WSL) [closed]

I have enabled developer mode and installed Bash on Ubuntu on Windows. My home directory can be found under %localappdata%\Lxss\home\<ubun