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.
...
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...
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...
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...
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...
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
...
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 ...
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...
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)
...
Using Java how could I manipulate the access permissions of a file in Windows?
...
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...
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?
...
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...
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...
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.
...
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...
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...
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????
...
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...
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?
...