Say I have a third party Application that does background work, but prints out all errors and messages to the console. This means, that currently, we have to keep a user logged on to the server, and restart the application (double-click) every time we reboot.
Not so very cool.
I was kind of sure, that there was an easy way to do this -...
My division has been tasked with recording the morning presentation audio for future use, using the built-in Windows Sound Recorder. Because of human nature, we don't always remember to start it on time.
Windows doesn't have a built-in equivalent to the Unix cron function. Besides installing a new software program (which will take time...
I frequently have to remote into my work desktop using rdp. One pain point has always been that I have a dual screen setup at home, but am unable to take advantage of it because the rdp session only uses 1 screen. My workaround up to this point has been to open a 2nd session to s different box on the secondary monitor and work that way. ...
I have a Windows executable (say program.exe) and I want to provide users with 2 launchers that will pass different arguments to it.
program.exe -a
program.exe -b
I can easily do this with 2 batch files, but I would rather provide users with 2 .exe files as they are more likely to be used correctly without editing.
Is there an easy w...
How do I set the code page to UTF-8 in a C Windows program?
I have a third party library that has uses fopen to open files. I can use wcstombs to convert my Unicode filenames to the current code page, however if the user has a filename with a character outside the code page then this breaks.
Ideally I would just call _setmbcp(65001...
This is a GUI application (actually MFC). I need a command window with the ability to display a prompt like such:
Name of favorite porn star:
The user should be able to enter text after the prompt like such:
Name of favorite porn star: Raven Riley
But I need to prevent the user from moving the cursor into the prompt area. Use...
Please can someone advice what is the best place (path) to put some application data which should be accessible and editable by all users.
This is considering both Windows XP and Windows Vista and i expect that change in any file of above path does NOT trigger UAC!
...
Does anyone know the API call I can use to change the keyboard layout on a windows machine to Dvorak? Doing it through the UI is easy but I'd like to have a script that I can run on new VM's to automate the process.
...
On POSIX systems rename(2) provides for an atomic rename operation, including overwriting of the destination file if it exists and if permissions allow.
Is there any way to get the same semantics on Windows? I know about MoveFileTransacted() on Vista and Server 2008, but I need this to support Win2k and up.
The key word here is atomic....
As a programmer I found it very hard to use my laptop and workstation with two different input devices, Can anyone suggest a good solution to use single mouse and keyboard to control my two machines
I am not looking for a Virtual Machine or RDP solution to see my machines in a single monitor,
...
Trying to update some gems on a Windows machine and I continually get this error output for gems that do not have pre-compiled binaries:
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt...
What is the best way to get a list of all files in a directory, sorted by date [created | modified], using python, on a windows machine?
...
I have a PHP web application on an intranet that can extract the IP and host name of the current user on that page, but I was wondering if there is a way to get/extract their Active Directory/Windows username as well. Is this possible?
...
I've built an installer for my application by hand (don't ask why). And I set up the registry keys for its entry in the add/remove control panel under "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall". And it works fine. I need it to be under HKCU so my installer will run on Vista without asking to be elevated.
The issue I h...
I am using SetCursor to set the system cursor to my own image. The code looks something like this:
// member on some class
HCURSOR _cursor;
// at init time
_cursor = LoadCursorFromFile("somefilename.cur");
// in some function
SetCursor(_cursor);
When I do this the cursor does change, but on the first mouse move message it changes ba...
I want to write a script which cleans the 'run' dialogue automatically every log off. Where is the history stored?
...
Does windows have any decent sampling (eg. non-instrumenting) profilers available? Preferably something akin to Shark on MacOS, although i am willing to accept that i am going to have to pay for such a profiler on windows.
I've tried the profiler in VS Team Suite and was not overly impressed, and was wondering if there were any other g...
This might sound like a little bit of a crazy question, but how can I find out (hopefully via an API/registry key) the install time and date of Windows?
The best I can come up with so far is to look at various files in C:\Windows and try to guess... but that's not exactly a nice solution.
...
From http://support.microsoft.com/kb/317277:
If Windows XP restarts because of a serious error, the Windows Error Reporting tool prompts you...
How can my app know that "Windows XP has restarted because of a serious error"?
...
I've always been able to allocate 1400 megabytes for Java SE running on 32-bit Windows XP (Java 1.4, 1.5 and 1.6).
java -Xmx1400m ...
Today I tried the same option on a new Windows XP machine using Java 1.5_16 and 1.6.0_07 and got the error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Cou...