windows

Control 2 separate Excel instances by COM independently... can it be done?

I've got a legacy application which is implemented in a number of Excel workbooks. It's not something that I have the authority to re-implement, however another application that I do maintain does need to be able to call functions in the Excel workbook. It's been given a python interface using the Win32Com library. Other processes can ...

How do I apply a diff patch on windows?

There are plenty of programs out there that can create a diff patch, but I'm having a heck of a time trying to apply one. I'm trying to distribute a patch, and I got a question from a user about how to apply it. So I tried to figure it out on my own and found out that I have no clue, and most of the tools I can find are command-line. ...

Using MSMQ for interprocess(inter application) communication on Windows Mobile 5.0

Hello, We have a Native Embedded VC (EVC4.0) application running on a Windows Mobile 5 device. Now there is a requirement to get this application to talk with a new mobile application to be developed using either EVC4.0 or .Net CF. We were thinking of using MSMQ on the Windows Mobile device for inter process communication between these ...

How to clear python interpreter console?

Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc. Like any console, after a while the visible backlog of past commands and prints gets to be cluttered, and sometimes confusing when re-running the same command several times. I'm wonde...

Is there a way to allow a Windows service (unmanaged c++) to write files on a shared network folder?

I tried running the service in the "Local System" : didn't work. I tried running the service in an account having rights on the network shared folder : didn't work. Do I have to create a standalone application for this and launch this application as a user with rights on the network shared folder? Thanks, Nic ...

How can I delete Windows restore points in c#?

Hello, Im looking for a way to delete Windows restore points using C# perhaps by invoking WMI. Any code snippet would be very helpful. Kind regards, ...

How to assign alt + f1 key to an opened Windows application

I usually have more then 10 opened application windows. When I write code I need to switch fast between a browser, an IDE and terminal windows. Alt + tab is too slow, too many windows to choose from. Virtual desktop is a work around for me. On a first desktop I keep browser, on a second IDE, etc. So I am able to switch fast between my m...

Can a program catch and prevent the pop-up dialogs for new USB drives in Windows?

In an application we would like to control the windows pop-up messages that appear when a new USB drive is connected to the system. Ideally, the dialog box should be completely hidden. Any messages that could help? Update I know the trick to globally disable autoplay, but I'd rather control the behavior on a per event, per device bas...

Command line tool to delete folder with a specified name recursively in Windows?

I want to delete every "_svn" in every folder and subfolder... For example c:\ proyect1 _svn images _svn banner _svn buttons _svn Then I run something like rm-recurse c:\proyect1 _svn And I should get: c:\ proyect1 images banner buttons The ideal thing would be a tiny stan...

Retrieve file properties

When in Windows XP, if I open the properties window for the file and click the second tab, I will find a window where to add attributes or remove them. While developing things, I noticed there was actually something I wanted to know about the file. How to retrieve this data? It's a string with name 'DESCRIPTION'. The actual tab is sayi...

Is there a way to decode numerical COM error-codes in pywin32

Here is part of a stack-trace from a recent run of an unreliable application written in Python which controls another application written in Excel: pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2146788248), None) Obviously something has gone wrong ... but what?[1] These COM error codes seem to be...

Can you get rid of the "Microsoft Office Excel has encountered a problem" dialog?

You know the one I mean: Is there a way to disable this? I'm writing an application to automatically test a large number of Excel spreadsheets which are used in a critical environment. Many of these sheets do crazy things which crash Excel. When Excel crashes I want it to terminate ASAP and without user-intervention. I definitely ...

How do I host an application window as a child of a window belonging to another process?

I would like to host an application window from a process "A" into the main window of a process "B", just as if "A"'s window were a MDI child window. Is this possible in Windows? Or are there some tricks which would allow me to fake this? By the way, I'd like to remove the title bar (or better yet, all the non-client stuff) of "A"'s win...

Concatenating to Clipboard?

Does anyone know of a utility (for Windows or Linux or MacOSX) that will append the selected contents to the clipboard? Rather than killing what's already there...(maybe using a different keyboard shortcut instead of Ctrl+C to do this? And I don't mean multiple-clipboard items... I mean concatenating multiple strings of text to the sam...

How can I find out the file system being used in Windows? Preferably in code.

How can I find out the type of file system being used in Windows? Preferably in code. ...

What is a great free icon editor for windows?

I'm looking for a good icon editor for windows. Does anyone have some good recommendations? ...

Detecting Windows OSes on other partitions

Hello, What is the good way to check if the current computer is configured for dual/multi boot. If my active Windows OS is on D drive, I would like to check if there is any other Windows installed on other drives C:, E:, F: etc Basically I want paths to Program Files and Windows folders for each OS installed. Thanks. ...

Python/Ruby IDE (Windows)?

Are there any Windows IDEs that support both Ruby and Python? I'm talking about the type of IDE that has syntax suggestions (auto-completion feature). I've tried Netbeans but it only seems to support Ruby (maybe there's a way to add Python support?) ...

Producing 64-bit builds on Windows with free software

Hi, I have a C++ project that I've been developing in Microsoft Visual C++ 2008 Express Edition. It has come to the point that I'd like to port to 64-bit and continue development. What is the best way to do this using free software? My thoughts so far: The Express Edition of MSVC doesn't come with 64-bit compilers, so I can install...

BAT file to create Java CLASSPATH

I want to distribute a command-line application written in Java on Windows. My application is distributed as a zip file, which has a lib directory entry which has the .jar files needed for invoking my main class. Currently, for Unix environments, I have a shell script which invokes the java command with a CLASSPATH created by appending...