windows-xp

Using Python to get Windows system internals info

I'd like to write some quick Python code to assess the CPU, memory, disk, and networking usage of my Windows XP system. Are there existing Python libraries that would allow me to access that information? Or, are there DLL's that I can call from Python? (If so, a code sample would be appreciated) ...

How to set processor affinity on an executable in Windows XP?

I have a quad core system with third party application that once in a while spins several processes (always the same executable but several instances of it) and takes 100% of CPU time. I also have a couple of web services running on the same box (IIS and third party). The problem with the all cores being busy is that it makes this third...

Large items in the notification area (AKA system tray)?

I would like to place some large items in the XP system tray. (the one next to the clock) By this i mean items that take up more than the standard icon space. I know it can be done because I have seen several weather and time applications with this functionality. For example http://www.respectsoft.com/weather-clock-screenshots.php (se...

How do I run a bat file in the background from another bat file?

I have a "setup" script which I run in the morning which starts all the programs that I need. Now some of those need additional setup of the environment, so I need to wrap them in small BAT scripts. How do I run such a script on Windows XP in the background? CALL env-script.bat runs it synchronously, i.e. the setup script can continue ...

how to insert a sidebar like UI in xp task bar ?

The idea is to combine the features of a taksbar on windows xp and 'sidebar' as in windows vista. This is very useful if we dock the taskbar vertically ( left or right aligned ) on the desktop and give it some suitable width. Advantages More number of task bar items can stack vertically on taskbar ( as compared to the default horizo...

Remote Administration of Windows XP through the Command Line

Does anyone know of a good way to do remote administration of a Windows XP machine using just the command line? At the moment the only things it needs to do is to be able to install applications/patches, and transfer files to and from the machine, and installing registry patches would be nice as well. Currently we use a horrible hack...

How can i get Enterprise Manager for Oracle 11g R1 to install?

I am running a windows xp sp3 machine with 22gb free space, 1.5ghz Intel Pentium M and 768MB of RAM. Every time i try to install oracle 11g, the installation goes okay except for running the emca script. Enterprise manager failed due to the following error- error starting database control caused by OracleDBConsoleorcl not being...

Error while copying from network share "This page has an unspecified potential security flaw."

I recently reinstalled XP and then SP3 and I'm currently getting an error whenever I try and copy something from a network share. Title: Internet Explorer Message: This page has an unspecified potential security flaw. Would you like to continue? I believe it's related to KB921398 (MS06-045) and I'm currently uninstalling SP3,...

Does Boot loader mind kernel import declarations?

I wonder whether the Windows XP bootloader (ntldr) actually makes use of the Windows kernel (ntoskrnl.exe) import declarations? ntoskrnl.exe has following imported modules: BOOTVID.dll, HAL.dll and KDCOM.dll. So these three modules are the first ones to be loaded. Imagine that the kernel has another module declared as imported. Will th...

How to develop using WIA 1 under Vista?

I'm using VS2008 SP1 under Vista SP1. My .Net-program uses a COM reference to WIA (Microsoft Windows Image Acquisition Library v2.0). I'm using CommonDialogClass.ShowAcquireImage to scan a document and it's working fine. One of my customers is running XP. As I understand WIA, under XP you have to use WIALib (WIA 1.0). Is it possible to d...

Win32_PerfFormattedData_RemoteAccess_RasPort WMI class on Windows XP

I'm getting 'Invalid class name' exceptions when trying to monitor changes to the Win32_PerfFormattedData_RemoteAccess_RasPort class on Windows XP. I'm using the code listed here. Is this class supported on XP? The documentation claims it is, although it's supplied by a different provider. If not, what's a good alternative? ...

Saving and restoring application window state

I have a lot of session state when programming - shell windows, ides, virtual machines, web browsers. This is all lost when the session ends i.e. when logging out or rebooting. Is there a way to save the desktop state on MS Windows XP and have it restored later? Ideally the solution would allow multiple sessions to be saved and allow ...

C# Form Application - Modal Dialogs Have Wrong Parent

I have an application which has an asynchronous operation built into it that loops over a large number of items and performs lengthy calculations on each item, as this occurs certain conditions will cause the application to pop up a modal dialog for user input. Interestingly, I noticed while running this today that in one application ins...

Running a command on multiple Windows servers

I maintain a number of load balanced web servers running Windows Server 2003. Today when I want to make a change to those servers, I use a tedious process of opening a remote desktop connection to each of those servers then running a command from the command prompt on each server. This takes a lot of time. What I would like to do is r...

Visual studio on windows xp

i need to run a few visual studios on windows XP and it seems to take up a lot of memory. i am also running resharper which is a memory hog. i am running 32 bit XP. How much memory can i put into my machine until i get to the point where the OS hits its limit. Also, any other ways of running multiple visual studio without such slow pe...

How can I run the "tar" command in WindowsXP?

I need to run the "tar" command (to decompress a file) within WindowsXP. Do I need a i.e Linux emulator ? ...

Python 2.6 on Windows how to terminate subprocess.Popen with "shell=True" argument?

Is there a way to terminate a process started with the subprocess.Popen class with the "shell" argument set to "True"? In the working minimal example below (uses wxPython) you can open and terminate a Notepad process happily, however if you change the Popen "shell" argument to "True" then the Notepad process doesn't terminate. import w...

Modify XP theme (appearance&color scheme) from a vbscript

Does anybody know how to modify Windows XP appearance and color scheme using VBScript? I have an application written in Visual C++ that needs Windows XP appearance (not classic) to be properly displayed and I want to set this properties from the Installation. I use InstallShield to make the installer and VBScript to perform some custom...

Balloon Tooltips using Shell_NotifyIcon work on Vista, but not on XP

I have some code that pops up a balloon tip. It works on Vista but not on Windows XP. This is the code so far. It works on Vista but not on XP. I can't understand why. This version does not load the icon so it will show up blank. memset(&m_notifyData, 0, sizeof(NOTIFYICONDATA)); m_notifyData.cbSize = sizeof(NOTIFYICONDATA); m_notifyDat...

'Cached' behaviour of 'hotfixed' dlls

Sometimes, a customer (or tester) needs a patch on an installation of the product I work on. Sometimes, I brew him a dll containing the fix, so that he can test it. He overwrites the old dll with the new version and restarts the app. Every now and then, it appears that the 'new' dll isn't actually used, although I'm absolutely positiv...