windows

How can I create a locked-down python environment?

I'm responsible for developing a large Python/Windows/Excel application used by a financial institution which has offices all round the world. Recently the regulations in one country have changed, and as a result we have been told that we need to create a "locked-down" version of our distribution. After some frustrating conversations wi...

An easy bulletproof technique to check if the system has jre (windows)

Hi. Sorry my newbie question :P If I promp "java -version" in the cmd on a windows system, am I guaranteed that the system will be able to run .jar files if I don't get any error? ...

Break out of ATL class into Win32 functions

Bit of a dumbass question... I think I left my brain in the car... I'm trying to call the Win32 version of SetWindowPos from within an ATL class (I need to specify a different first hWnd, which ATL normally handles), but I can't 'break out' of the ATL class and get the following error: error C2661: 'ATL::CWindow::SetWindowPos' : no ove...

Is there a way to redirect stderror to stdout for the duration of a script in Windows?

As a long time UNIX shell scripter / release engineer coming into the Windows environment full time with my latest job, there are some things I inevitably miss. One of them is my trusty old 'exec 2>&1' which in the Bourne shell permently knots together stderr and stdout for the duration of the script, so that logging will capture everyt...

What happens if I don't call RegCloseKey on an opened key?

In Windows, what happens to an open HKEY variable if you don't call RegCloseKey before the HKEY goes out of scope? I don't see any errors or warnings, nor any memory leaks when the application closes. MSDN doesn't offer much help, but makes it sound like it somehow uses up resources. Does anyone know what actually happens? ...

Can a window be always on top of just one other window?

In Windows, is it possible to set window A such that it is always on top of window B, yet allow other windows to work as normal and appear over the top of both, when active. In other words, I want a parent-child relationship between two windows. Can this be done without making window A a child of window B, MDI-style? Window B isn't mine...

Windows Shell Script - Closing the command prompt

Guys, I assume this is pretty easy so here goes; I'm trying to execute these commands and then close the command prompt after Firefox opens. How do I do that? I can't get back to a command prompt after "ping 127.0.0.1 -n 4>null" (i'm simulating a sleep here). @echo off call tskill firefox call ping 127.0.0.1 -n 4>nul call C:\"Program...

Windows RegKey - Default Browser Application Path

What RegKey can you get the default browser application's path from? Best way to get to it from C#/.NET? ...

Can I send a ctrl-C (SIGINT) to an application on Windows?

I have (in the past) written cross-platform (Windows/Unix) applications which, when started from the command line, handled a user-typed Ctrl-C combination in the same way (i.e. to terminate the application cleanly). Is it possible on Windows to send a Ctrl-C/SIGINT/equivalent to a process from another (unrelated) process to request that...

PY2EXE: How to output "*_D.PYD" file (debug) and use MSVCR80D.DLL?

The debug configuration of my app is built against: PYTHON25_D.DLL MSVCR80D.DLL We use Python .PYD files in our application. Some of these .PYD are .PY converted by PY2EXE to .PYD. When I run PY2EXE on MYSCRIPT.PY, I get the following .PYD and dependencies: MYSCRIPT.PYD PYTHON25.DLL MSVCR71.DLL KERNEL32.DLL What I want i...

Which repository contains LWP::Parallel::UserAgent?

Hi all, I need to install LWP::Parallel::UserAgent to run on Windows environment, I used ActivePerl 5.10. I search on Google but did not find any information about repo for this package Thanks, Minh. ...

How do I get a list of installed updates and hotfixes?

A list of every update and hotfix that has been installed on my computer, coming from either Microsoft Windows Update or from the knowledge base. I need the ID of each in the form of KBxxxxxx or some similar representation... Currently I have: const string query = "SELECT HotFixID FROM Win32_QuickFixEngineering"; var search = new Manag...

Design pattern for a single form Windows Forms application

My app is expanding, but the reqs dictate that there should be only one window open at all times, think of Nodepad where there is a menu, with each menu item different functionality but only one window open at all times as opposed to Excel where a user may have few windows open at once. So in terms of Windows forms, I was thinking of pl...

Help getting me started on making a file -> right-click context menu in Vista

I am a novice .Net 2.0 and 3.5 developer. I want to create an application that creates a context menu when a file is right clicked on in Vista. After the right click--I think I can figure out the rest, but I don't know the technique to get access to the Vista API. FOLLOW-UP: As I have been reading some of the info that folks have r...

How do you copy text from Firefox in Windows to bash shell in Unix?

I have a long URL on a web page in Windows that I need to copy into bash shell in Unix. Is there a way to do this without retyping the URL? ...

How to draw graphics/text on top of another application

I want to enhance an application, but there is no 3:e party API available. So basically the idea is to draw graphics/text on top of the applications windows. There are problems with z order, clipping, and directing mouse clicks either to my application or the other application. What is an elegant way of doing this? Example image here....

What is wrong with this SimPy installation?

Alright, I have tried a bunch of times the python setup.py install command from my command prompt, and this is what I'm getting: SCREEN And when trying this: from SimPy.Simulation import * on Idle, I get this: Traceback (most recent call last): File "C:/Python30/pruebas/prueba1", line 1, in <module> from SimPy.Simulation ...

Using COM object in C++ with MinGW compiler

Hi, I have an in-process COM server (i.e. DLL) I'd like to use from a C++ application that's to be compiled with the MinGW suite (using CodeLite IDE). I don't quite know where to start, any tips, suggestions or sample code anyone? Cheers, Matt ...

Multiple Windows Services in One exe

I am trying to build several Windows services to do different things. For instance, I need Windows services that will: Send a daily report via email Periodically cleanup some archived info every 30 minutes etc. The tasks I need the windows services to do are distinct so I don't really like the idea of having them all in one service....

Concurrently read from a single file

I have the following problem situation. A bunch of data is split across 10k small files (approx. 8-16 kib each). Depending on user input, I have to load these as fast as possible, and process them. More precisely, each data packet can be split into 100-100k files, and there are approximately 1k data packets. Most of them are the smaller ...