windows

What is a good windows batch scripting reference guide?

I have found a few guides to be incomplete and hard to follow. Can I get a recommendation for a couple good guides on this subject? ...

Sending a mouse click to a button in the taskbar using C#

In an application that I am currently working on, a requirement is to bring a window of an external application to the foreground. Making Win32 API calls such as BringWindowToTop and SetForeground window do not work all the time. This is due to some restrictions within Windows XP. What I would like to do instead is send simulate a mou...

Is there a way to check to see if the user is currently idle?

There is some documentation on the internet that shows that Windows changes the behavior of the NotifyIcon.BalloonTipShown command if the user is currently idle and this is detected by checking for keyboard and mouse events. I am currently working on an application that spends most of its time in the system tray, but pop-ups up multiple ...

Anyway to stop Windows bringing app to front when displaying a context menu on tray icon?

We are experiencing this annoying problem where we have a context menu on our tray icon, if we display this context menu we have to SetForegroundWindow and bring it to the front. This is really annoying and not at all what we want. Is there a workaround, I notice that Outlook MS Messenger and other MS apps do not suffer this, perhaps th...

How to patch on Windows?

Given a (source) patch file, what's the easiest way to apply this patch on the source files under Windows? A GUI tool where I can visually compare the unchanged-changed source lines would be great. ...

What have you used Windows CardSpace for, if anything

I'm doing some funky authentication work (and yes, I know, open id is awesome, but then again myopenid doesn't work right at this moment!). Stumbling across Windows CardSpace I was wondering if anyone has used it in a real production system. If you have, what were the pros and cons for you? ...

Script to backup svn repository to network share

I have a svn repo on my machine. Anyone have a script to back it up to a network share? I'm using the repo locally since I'm disconnected a lot. The network share is on a server with a backup strategy. I'm a perfect candidate for git/hg but I don't want to give up my VS integration just yet. OS: Windows ...

What to install on a windows XP computer for unsophisticated users

I volunteered to set up a laptop computer with Windows XP for my son's second grade teacher. I installed windows from scratch (to make sure it's clean). I'm trying to create a setup that will keep her running without issues for the longest possible time. Also (since it's not a very powerful machine) I would like to make sure she has only...

Is there any way to configure windows to not change the focus?

I'm tired of being typing something, having a pop-up with a question appear, and hitting enter before reading it... (it also happens with some windows that are not pop-ups) Do you know if there's some setting I could touch for this not to happen? ...

Enumerate Windows user group members on remote system using c#

Within c#, I need to be able to Connect to a remote system, specifying username/password as appropriate List the members of a localgroup on that system Fetch the results back to the executing computer So for example I would connect to \SOMESYSTEM with appropriate creds, and fetch back a list of local administrators including SOMESYST...

Any capistrano comparable for windows/.net?

See title. ...

What's an alternative to GWL_USERDATA for storing an object pointer?

In the Windows applications I work on, we have a custom framework that sits directly above Win32 (don't ask). When we create a window, our normal practice is to put this in the window's user data area via SetWindowLong(hwnd, GWL-USERDATA, this), which allows us to have an MFC-like callback or a tightly integrated WndProc, depending. Th...

Notification of drop in drag-drop in Windows

My C# program has a list of files that can be dragged from it and dropped into another program. My requirements are that the file be copied to a different directory first. So, can I be notified of the drop operation so that I can only copy the file if operation succeeds? I'd rather wait till I know it needs to be copied before actually ...

What's the best way to duplicate fork() in windows?

How do I implement some logic that will allow me to duplicate the functionality on windows that I have on linux with fork() using python? I'm specifically trying to execute a method on the SAPI Com component, while continuing the other logic in the main thread without blocking or waiting. ...

Windows / Active Directory - User / Groups

I'm looking for a way to find a the windows login associated with a specific group. I'm trying to add permissions to a tool that only allows names formatted like: DOMAIN\USER DOMAIN\GROUP I have a list of users in active directory format that I need to add: ou=group1;ou=group2;ou=group3 I have tried adding DOMAIN\Group1, but I get a...

.Net Security Policy change by standard users?

The .Net Security Policy can be changed from a script by using CasPol.exe. Say I will be distributing an application to several users on a local network. Most of those users will be unprivileged, standard accounts, so they will not have necessary permissions for the relevant command. I think I shall be looking into domain logon scripts....

What is the "best" simple install system for XP/Vista?

Heavy emphasis on simple. I've never made an installer and I'd rather not have to learn much. A system that I could hand a pile of files to and it would make some smart guesses about where to put them would be ideal. Go ahead and answer the general question. However In my cases I'm stuck with some extra constraints. The program to be i...

Best way to license Microsoft software as an independent developer

I've recently switched from being an employee of a small consulting company to being an independent consultant and as time goes on I will need to upgrade Windows and Visual Studio. So what is the most affordable way to go about this for a small time developer? My previous boss suggested I get a TechNet Plus subscription for OS licenses,...

Screencast software

I want to screencast an application in windows. What good options are out there? I just want it for 1-3 videos, so I prefer free but am willing to pay if have to. Thanks ...

What are your experiences running SVN on Windows?

I'm curious to hear the experiences of those who are currently running their SVN server on Windows. Jeff Atwood has a post on how to setup SVN as a Windows service. It's a great first step, but it doesn't touch on other topics, such as: What to use for a web-based repository browser? WebSVN can work on Windows, but it ain't pretty. H...