windows

'proper' & reliable way to get all installed windows programs in Python?

I've seen numerous ways of retrieving installed programs on WinXP+ in python. What is the proper and most robust way of doing this? Currently I'm accessing HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall and reading each of the keys from there to get a list. (I've been told this isn't the proper way of doing things) I've...

Open a dialog box from a DLL

I have a Visual Studio 2008 solution with two projects: a C# Windows Forms application and a C++ DLL. The DLL opens a custom CFileDialog. Here is a toy version that demonstrates the problem, where the C# app is just a button to launch the dialog and a label to show its result: DialogApp.cs: ... public partial class Form1 : Form { ....

How can I handle arrow keys in a Perl script under cygwin?

I am running Perl script under cygwin which takes input from <STDIN> and process the requests continuously. #!/usr/bin/perl print "Enter Input:"; while(<STDIN>) { print "Recieved Input: $_"; print "Enter Input:"; } $perl testPerl.pl Enter input:input1 Recieved input:input1 Enter input:inpt2 Reciev...

Ruby: How to issue CLI commands on Windows

I'm new to Ruby, so this may be a pretty basic question. I have a Windows batch file that I use all the time to interface with my source control system . The batch file issues various command-line commands supported by the source control system's command line interface (CLI). I'd like to write a Ruby program that issues some of these ...

How to set software restriction policies programatically

I would like to add software restriction policies programatically using c#. For example: Add and additional rule to disallows paint.exe to run. Unfortunately I don't have the slightest idea how I could achieve this in c# Thx in advance, Tom ...

Adding SMB to Windows, how safe is this?

I came across a small hack, which claims it enables smb:// on windows. The complaint was that things like <a href="\\computername\path\file.ext">text</a> weren't working. While true that you can use file:///// in your url's, the user wanted to use smb:// so that it's cross-platform. The hack goes as follows: 1) Create this Reg file, sav...

What's the best way to wrap Flash in a windows app that forces a specific screen resolution?

Can someone recommend a good solution for a Windows based wrapper around a Flash application(or even IE, in which I can call Flash), that would launch as an executable and force the screen to a specific resolution and then render the Flash in that (full screen) window? ...

How to create a virtual file ?

I'd like to simulate a file without writing it on disk. I have a file at the end of my executable and I would like to give its path to a dll. Of course since it doesn't have a real path, I have to fake it. I first tried using named pipes under Windows to do it. That would allow for a path like \\.\pipe\mymemoryfile but I can't make it w...

Open browser windows without menu bars (JavaScript?)

The users in my community want the chat to be opened in a small window without all the control bars. So I think a popup window without scroll bars, location bar, status bar and so on would be the best solution. Right? What is the best way to have such a popup window? JavaScript? Can I do it like this? BETWEEN AND <script type="text...

Any open source Alt-Tab windows switcher project exists?

Having tried a few Alt-Tab windows switcher, I want to write one to suit my own needs. Are you aware of any open source Alt-Tab windows switchers? If it already exists, I don't want to start from scratch :) ...

Can a process elevate itself after startup?

Is it possible for a process to gain administrator priviledges after it has started? If so, how? Examples should be in C or C++. Edit - Examples should also use umanaged code. ...

interactive tasks (question to participants of acm,ioi etc) - realization.

You well know tasks in olympiads, where solution's input is output of same module. Server.exe's output is Client.exe's input, and in another direction. How do you think it's testing under Windows? I try to made personal testing system. More formally: You have: 1) a.exe and b.exe 2) stdout of a.exe is stdin of b.exe and in another direct...

SOLR getting started, little help

I have managed to install SOLR and run the admin interface... I have no clue on how to add indexes to SOLR... I have a virtual server (wampserver) and in the SOLR tutorial they are referring to a TERMINAL all the time... I guess they mean the LINUX terminal or something, but how should I do the same thing in windows OS? For instance,...

Ruby Gems on Windows

I have removed and reinstalled ruby on my machine (windows 7, ruby 1.9.1). When I go to get rails again I get: While executing gem... File Exists C: Yet when I list my gems is says none are installed. What gives? ...

Is there a .Net API for Windows Error Reporting

Is there a .Net API for me to integrate Windows Error Reporting into my application? I'm mostly interested in initiating error reports even for non-catastrophic errors occurring in my application and all I could find is the WIN32 API. ...

Testing if Adobe components are installed on the system

Hi, Does anyone know how to test if a given Adobe component (Illustrator, or Photoshop, whatever) is installed on a system (Windows7). Probably this would be a variable stored in a registry, but what exact key would this be? regards, moniuch ...

Determining maximum memory use of a process

I want to run a command and, when it's complete, have a record of the maximum memory use of the resulting process. For instance, I want something analogous to the 'time' command on Linux, where 'time foo' will run 'foo' and, when 'foo' exits, will print out the amount of CPU time that 'foo' took. For my present application I need this t...

Where is System.err on Windows?

I have a Java GUI-based application that writes some diagnostic messages to System.out and System.err. Where are these messages output when running on Windows? (For example, on Mac OS X, they're printed to the system console log.) Edit I should add that the Java application is packaged as a .exe, so (right now) I can't launch it using ...

Detect If IPv6 is Enabled on Windows Machines

Hi Folks, I am writing a powershell script that will act as a build compliance test for our servers. One of the things I need to do is detect if IPv6 networking has been disabled. WMI indicates that this information can be found in the IPAddress Property of Win32_NetworkAdapterConfiguration but can be both IPv6 or IPv4. This does not g...

Batch Files: Processing files in alphbetical (Numerical maybe>) Order

Hey S.O Guys I am currently trying to process a bunch of files with imagemagick using a batch file in windows, they are all numbered numerically as follows: image00 image01, image02, ..., image010, image011, ..., image0100, image0101 and so on, but when i try to process the file it wants to run though image00, image01, image010, image0...