windows

Check if the current user can write to the registry (C, windows)

Is there a way to check whether the current user can write to the registry? More specifically if it's not an administrator, can it write to HKEY_LOCAL_MACHINE or the policy keys on HKEY_CURRENT_USER. I tried with LookupPrivilegeValue() but I don't think it's the right thing to do. Code is appreciated. ...

Running repetative method at specified moments (windows, .net etc) (like clock)

This is not an urgent nor important question, seems more like exercise. How to run a function at a specific moment? The more precise, the better. For instance, I have a method which says time. I want to run it on XX o'clock, XX:15:00 (and preferably, 000 ms), XX:30:00.000, XX:45:00.000. Currently I have an (almost endless) loop, which...

Free program to grep unicode text files in Windows?

I have a collection of unicode text files (exported from regedit) and I'd like to pull out all the lines with a certain text on them. I've tried Grep for Windows and findstr but both can't seem to handle the unicode encoding. My results are empty, but when I use the -v option (show non-matching lines), the output shows a NUL between ea...

How do I use the registry in codegear c++ builder?

In the simplest possible terms (I'm an occasional programmer who lacks up-to-date detailed programming knowledge) can someone explain the simplest way to make use of the registry in codegear C++ (2007). I have a line of code in an old (OLD!) program I wrote which is causing a significant delay in startup... DLB->Directory=pIniFile->Rea...

a way to allow clobbering somehow in Windows?

I would like some kind of delete/copy/move/etc Windows commands that completely ignores if a file is "in use" or not and will do its job anyway. my specific case: So at the company I'm working at, we have GUI test scripts. The GUI program we're testing is one that is supposed to protect other "testprograms" (as we call them) by modifyi...

Programatically instigate a Windows Live Messenger Notification popup with VB .Net

I really like the MSN notification popup. Basically the popup you see when you receive a new email etc. I'd like to put timers and set times so I, for instance, get a popup at 2PM saying "Don't forget..." I know I could make my own notification bubble but I'd prefer the WLM one. Thanks ...

tell visual studio to create a utf-8 environment when running executables

I am using CMAKE with CTEST to run my regressions. My application is a console app which outputs in whatever encoding it is presented by it's environment (A feature of Tcl). How do I tell visual studio that when it runs my application to run it in a utf-8 environment. Right now my regression results are encoded in latin, and it makes ...

Can't debug Java Windows Services with jhat, jps, jstack

I frequently showcase the jhat, jps, and jstack tool set to developers on Linux and Mac. However, a developer recently indicated that these are unusable in Windows if the Java app in question is running as a Windows Service. A Sun-filed bug says something very similar, but was closed due to inactivity. I have tested this out for mysel...

Why is wxGridSizer much slower to initialize on a wxDialog then on a wxFrame?

It seems that this is specific to windows, here is an example that reproduces the effect: import wx def makegrid(window): grid = wx.GridSizer(24, 10, 1, 1) window.SetSizer(grid) for i in xrange(240): cell = wx.Panel(window) cell.SetBackgroundColour(wx.Color(i, i, i)) grid.Add(cell, flag=wx.EXPAND) ...

Manipulating Windows file permissions in Java

Using Java how could I manipulate the access permissions of a file in Windows? ...

How do you increase Internet Explorer 7's "Select as you type" timeout for comboboxes?

In Internet Explorer 7, you can select options from comboboxes by typing the first few letters of the value you're looking for. However, some people in our organisation are a bit slow and can't type their selection quick enough, with the result that the timeout is triggered and the "select as you type" process starts all over again. Exa...

How do I write a batch file to uninstall an application and install a new version of it?

I am using a CAD application which will have monthly updates. For updating, we need to uninstall the current version and install new version which will come with the new patch. Can we do that? ...

Send commands to other command-line programs

Hey, Is there a way, to send commands to another command-line program? 'Cause i have a special command-line program, but I can't send commands to it using syntax like program.exe something_to_do the program executes something like this: ("here syntax" is where i want to input text to and also enter to start) TheWhateverCommandLinePro...

How to get local application data folder in Java?

I'm looking for a way to get the location of the local application data folder, which is a special Windows folder, in Java. Unfortunately, the following only works for English versions of Windows XP with default settings: System.getProperty("user.home") + "\\Local Settings\\Application Data" What I'd like to have is something like thi...

BATCH Windows: 30 minutes.

Hello, I want to do something: i have a LARGE batch file, but this is what i want to apply to HOLE the batch: After 30 Minutes, it should display a message. How is this possible, and can i set this to the hole batch. I kinda have a lot of stuff in it. ...

Subversion: Allow both svn based (passwd file) and windows domain authentication

I have subversion currently set up on Windows to authenticate against our domain controller via Apache. Is it possible to allow authentication against both the domain controller and the subversion passwd file? To accomplish this, would I have to have apache for windows authentication and also have svnserve run as a service and have t...

Where to find good looking and Vista look-alike user interface icons?

Ok, I know that Visual Studio ships with a few user interface icons but they are few and most of all, they are kinda outdated and don't fit well into Vista or Seven. I like pretty interfaces and I like interfaces where they fit and look part of the OS. One of the problems regarding this is the interface icons, I can't find good icons in...

Regsvr32 fails to find the dll in the current folder

When I use "regsvr32 foo.dll" i get a "The specified module cannot be found" error. The error is being caused because regsvr32 cannot find the file even though it is the current folder. I have specified the full path, and it still doen't work. Any ideas???? ...

How expand a CMD shell variable twice (recursively)

Using the Windows XP CMD command-line I can expand a variable twice as follows: set AAA=BBB set BBB=CCC for /F "usebackq tokens=*" %i in (`echo %%AAA%%`) do echo %i will echo CCC. I.e. AAA has been expanded to the string BBB, and then the variable BBB has been expanded to CCC. This doesn't work from inside a batch script (i.e. a .cmd...

WiX XmlFile ElementPath multiple results

I've just used the WiX XmlFile element with an ElementPath that matches multiple XML nodes and it just updates the first one, rather than all of the ones that match. Is this a bug in WiX? Can anyone suggest a workaround for this? ...