Open explorer on a file

In Python, how do I jump to a file in the Windows Explorer? I found a solution for jumping to folders: import subprocess subprocess.Popen('explorer "C:\path\of\folder"') but I have no solution...

Free alternative(s) to PowerGREP

First of all, great praise goes out to PowerGREP it's a great program. But it's not free. Some of it's options I'm looking for: Being able to use .NET regexp's (or similar) to find things in a...

How can I do a CPU cache flush in x86 Windows?

I am interested in forcing a CPU cache flush in Windows (for benchmarking reasons, I want to emulate starting with no data in CPU cache), preferably a basic C implementation or Win32 call. Is...

firefox open local link to directory with explorer

On a Website for our internal use i show links to local files and folders. the links are like this: href="file://C:/example/" href="file://C:/example/test.odt" The Problem is now that the link...

Downloading a file in Delphi

A google search shows a few examples on how to download a file in Delphi but most are buggy and half of the time don't work in my experience. I'm looking for a simple robust solution which will...

How to change the priority of a running java process?

In a related question we explored using ProcessBuilder to start external processes in low priority using OS-dependant commands. I also discovered that if a parent process is low priority, then all...

Set Windows command-line terminal title in Python

I'm running several instances of a certain Python script on a Windows machine, each from a different directory and using a separate shell windows. Unfortunately Windows gives each of these shell...

Delay Load DLL: "Exception 0xC06D007E: Module not found" when application started multiple times

I have a case of an intermittent crash in my application where we use Delay Load DLL. There are a few different call-stacks where we have seen the crash, but it always crashes when raising...

Delete a very, very deep tree of subdirectories on windows?

I was testing a file management program today and while looking to solve something else my program ended up not checking for moving a directory to the same directory. The result is a possibly...

How to Start an application and obtain a handle to it with Delphi?

I want to start an application from Delphi, and obtain a handle to it, so I can embed the main window of said application on a frame of type TFrame. So far I have tried: Function...

MS Word 2010 Could not open macro storage

I am creating Word Document Using Word Template Following is code Word.Document wordDoc = new Word.Document(); wordDoc = wordApp.Documents.Add(ref oTemplatePath, ref oMissing, ref oMissing, ref...

How to write text on a image in windows using python opencv2

I want to put some text on an Image. I am writing the code as: cv2.putText(image,"Hello World!!!", (x,y), cv2.CV_FONT_HERSHEY_SIMPLEX, 2, 255) It gives ERROR, saying 'module' object has no...

How to install Poppler on Windows?

The most recent version of ScraperWiki depends on Poppler (or so the GitHub says). Unfortunately, it only specifies how to get it on macOS and Linux, not Windows. A quick googling turned up...

Filename too long in Git for Windows

I'm using Git-1.9.0-preview20140217 for Windows. As I know, this release should fix the issue with too long filenames. But not for me. Surely I'm doing something wrong: I did git config...

Can I install self-signed drivers on 64-bit Windows without test mode if the self-signed CA root certificate is imported to the machine store?

Here is a great SO answer which covers the creation of self-signed CA and then signing executables with the obtained certificates:...

How to connect to wifi on Windows XP Virtual Box

I need to use a Windows VM for a class, and I'm trying to go online to download Visual Studio. I can do Bing searches, but any result I click on, or any URL I type in results in a message saying...

You require permission from "Myself" to delete folder - how to fix

I'm trying to delete a folder as an administrator, but I get the message "You require permission from UserAdam to delete folder". The problem is, I am logged on as UserAdam! I've tried changing...

How to change the default browser used by jupyter notebook in windows

I'm on a windows machine without admin right and I would like to run jupyter on chrome, while the default browser is another. I have a local installation of the Anaconda distribution and my first...

ConsoleZ maven color output

Recent maven versions do colored output in terminal. Git Bash shows correct colors, but ConsoleZ configured to use git bash does not. It just outputs raw color codes. Does anyone know how to fix...

Create RDP session programmatically

We have a remote support tool that allows us to connect to machines behind a NAT firewall. Once connected, we can choose to either connect to the console session or to any active RDP session from...

How to extract and re-import NTFS metadata?

I have a bunch of files on my HDD which contains metadata information that I use to sort huge collections of files(Information such as Year/Artist/Rating/Comments and whatnots) I would like to be...

Error when installing secp256k1 library on windows

I am trying to install the secp256k1 library on my windows 10 64-bit machine and I receive the following error C:\Users\user\Downloads\http-ftp>pip3 install secp256k1 Collecting secp256k1 Using...

How to read console output of a process without redirecting standard output?

I'm writing a GUI for a third-party console application and I wanted it to capture the output of the console window and add it to a text box in the GUI. This seemed like it was simple, all I had...

ipython - "cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts'

I'm trying to get ipython working on my windows 10 64 bit computer. When I try to start ipython from the command line, I get the error pictured in the screenshot attached to this question. Has...

Updating npm when using nvm-windows

I'm using nvm-windows version 1.1.7. I just installed node 11.9.0. nvm installs npm version 6.5.0 together with this node version. However, there's npm version 6.7.0 available already. When I now...

Mount native ext4 partition in WSL2

I often work on Windows and Linux (on dual boot) and I'm using a ntfs partition to synchronize a data between systems which is something problematic (lots of docker containers have a problem to...

Git Bash: Microsoft Visual C++ 14.0 is required, but I already have it installed

I am using git to clone https://github.com/rkern/line_profiler.git on Windows 10. It is erroring out with this error but I have this installed (see image below): error: Microsoft Visual C++ 14.0...

Video doesn't play on loop or repeat (vlcj-java)

I am using vlcj on my java program. I need the video to play repeatedly. I've used setRepeat(true); but it doesn't work for me. Is this any other to loop the video? Or am I doing it wrong? Please...

Making custom tel protocol windows 10

I'm working on a custom softphone application and running into a problem. I would really like to redirect the tel: links to a application on my PC. I have figgured out I need to add my application...

Spawn default browser with HTML string

I have code (and for decades) that: given some HTML string in memory hand that document to an Internet Explorer object and make Internet Explorer (separate process) visible all without littering...