windows-xp

Lost use of forward slash in windows command prompt

I can no longer use / at the windows xp command prompt, and it seems to have started after a botched cygwin installation, e.g. cd /windows won't work, but used to. Can anyone think of how this might have happened? OOPS! It doesn't normally work in XP, though I had read that it does in Vista. I simplified my problem and it was wrong. Th...

How to detect the language version of Windows

Required is the true language version of the OS, not the user interface language or the current locale settings. Use case: software installation which has to apply security settings and user account creation. The scripts have to know certain system properties like user group names in the original language of the OS. (Should work with W...

Formula or API for calulating desktop icon spacing on Windows XP.

I've built a simple application that applies grid-lines to an image or just simple colors for use as desktop wallpaper. The idea is that the desktop icons can be arranged within the grid. The problem is that depending on more things than I understand the actual spacing in pixels seems to be different from system to system. I've learned t...

How to(if possible) delete message from MSMQ using Computer Management tools. WinXP

Computer Management -> Services and Applications -> Message Queues How to delete some message from specific queue? It seems to me there was some way ... can't find it right now. ...

py3k RC-1: "LookupError: unknown encoding: uft-8"

I just installed the first release candidate of Python 3.0 and got this error after typing: >>> help('modules foo') [...] LookupError: unknown encoding: uft-8 Notice that it says uft-8 and not utf-8 Is this a py3k specific bug or a misconfiguration on my part? I do not have any other versions of Python installed on this French local...

How to run Tomcat 6 on WinXP 64 bit ?

Installed Tomcat 6 on WinXP 64. It installed just fine. But when I try to launch it ( from Windows Services) I get the following error : "Can not start an the Apache Tomcat Service on Local computer." error 216:0xd8 ...

GCC compiler error on Windows XP

I'm getting a totally bizzare error trying to compile a C program using GCC. Here is the batch file I am using: echo Now compiling, assembling, and linking the core: nasm -f aout -o start.o start.asm gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -c -o consoleio.o consoleio.c g...

Get XP to automatically "press" the default button on a dialog box

Some time ago, I came across an online article that described how to configure Windows XP to automatically accept the default option on a dialog box. As I (vaguely) recall, it was some sort of oddball registry configuration that did this, and it amazingly worked. Yeah - it's dangerous, but it would be very helpful right now with a proble...

What resolution .ico files do XP and Vista show on the desktop?

There's loads of choices for .ico files but I can't see any logic in how Windows chooses which resolution/bit depth to show ...

Launching a Application (.EXE) from C#?

How can I launch a application using C#? Requirements: MUST work on XP and VISTA? I have seen a sample from DinnerNow.net sampler that only works in vista? ...

IIS on Windows XP

Hi, Is it possible to run more than one website on IIS 5.1 (Windows XP)? I'm able to create multiple websites through adminscripts in IIS, but only one website can be active at a time. Is there is any workaround, trick, or script for this limitation? Thanks, ...

Programatically raise user privileges

I have been maintaining an installation for a while but I am not really an expert. now I've been asked to come up with a solution for this: Our software is always sold together with a computer as it has to be run in a very controlled environment. The installer needs administrative privileges to be executed. So far we had two different u...

Bizarre python ImportError

Here's my setup: a Mac, running OS X Tiger. Windows XP running in a virtual machine (Parallels). Windows XP has my Mac home directory mapped as a network drive. I have two files in a directory of my Mac home directory: foo.py pass test.py import foo If I run test.py from within my virtual machine by typing 'python test.py', I g...

"Mem Usage" higher than "VM Size" in WinXP Task Manager

In my Windows XP Task Manager, some processes display a higher value in the Mem Usage column than the VMSize. My Firefox instance, for example shows 111544 K as mem usage and 100576 K as VMSize. According to the help file of Task Manager Mem Usage is the working set of the process and VMSize is the committed memory in the Virtual addre...

How to simulate a slow printer in Windows XP?

To test printing in a Visual Basic Project I need to simulate a SLOW printer, how can I do that? ...

Maximum Filename Length in NTFS (XP and Vista)?

Quick and simple question which I need the answer to. I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename in NTFS; aka Windows XP or Vista? Many Thanks ...

Sparse files in WinXP SP3

Suddenly, we found out that WinXP SP3 didn't allow to create NTFS sparse file in user-mode application. Namely, DeviceIoControl with FSCTL_SET_SPARSE returns with error 0x57 (ERROR_INVALID_PARAMETER). The same code works well in SP2. Also, it's all ok if make the same calls from kernel-mode (both in SP3 and SP2). Google says nothing abo...

How to force Windows Indexing "activity"

The Windows Indexing Service pauses itself when it detects the "user is active." Is there a registry entry or something to make it continue indexing regardless of user activity? Clarification: in Windows XP ...

How to convert from Special Folders to full file names

Is there a way of converting special folder paths to a full file name (and back) or do I need to code my own (not hard I know, but no point if it exists) e.g. I want to store the file name of a template for an application, which the user can then change, it exists in the LocalApplicationData folder. what I would like to store is the lo...

User Interface Privilege Isolation in XP SP3

Hi All, Just after a bit of confirmation really: Does XP SP3 implement the User Interface Privilege Isolation (UIPI) mechanism found in Vista? Back story for human interest :) I've recently been handed the C++ source to a fairly large application. Sadly the sole developer of this application, since its inception back in the mid 90's, ...