windows

how to set windows service username and password through commandline

using sc command we can query, start , stop windows serice for ex: sc query "windows service name" sc config command changes the configuration of the service. but i dont know how to use it. could someone can tell me how we can set the username and password for windows service. ...

Differences between Safari for Windows and Safari for Mac

Hello, What are the differences from a developer point of view between Safari for Mac and Safari for Windows? I think it boils down to evaluate differences between (if I missed something, please correct): - Layout rendering - Javascript behavior The final decision to be made being: Can developers test only on Safari Windows (knowing ...

Install certificates in to the Windows Local user certificate store in C#

I'm writing a windows service that needs serveral certificates in the certificate store in order to connect to a third party web service. On my installer I call a small application (C#) that creates a user to run the service as. Works fine. I now need to install about 10 certificates (don't ask!) into the users certificate store but c...

Rename a directory in installer

I am working on a Windows application which needs to be able to update itself. When a button is pressed it starts the installer and then the parent application exits. At some point during the installer, the installer attempts to rename the directory that the parent application was running from and fails with "Access Denied" If you run th...

Howto bring a Java window to the front?

We have a Java-application that needs to be brought to the foreground when a telecontrol mechanism activates something in the application. In order to get this we have realised in the called method of the Class which represents the Frame of our application (extension of a JFrame) following implementation: setVisible(true); toFront(); ...

How to setup setuptools for python 2.6 on Windows?

Is there any way to install setuptools for python 2.6 in Windows without having an .exe installer? There isn't one built at the moment, and the maintainer of setuptools has stated that it's probable be a while before he'll get to it. Does anyone know of a way to install it anyway? ...

Windows shortcut (.lnk) parser in Java?

I'm currently using Win32ShellFolderManager2 and ShellFolder.getLinkLocation to resolve windows shortcuts in Java. Unfortunately, if the Java program is running as a service under Vista, getLinkLocation, this does not work. Specifically, I get an exception stating "Could not get shell folder ID list". Searching the web does turn up ment...

TIME_WAIT on Loopback Interface

Why is it that TCP connections to a loopback interface end up in TIME_WAIT (socket closed with SO_DONTLINGER set), but identical connections to a different host do not end up in TIME_WAIT (they are reset/destroyed immediately)? Here are scenarios to illustrate: (A) Two applications, a client and a server, are both running on the same ...

Adding License information to NSIS installer

We distribute the software created by my group via Windows installers generated via NSIS. We generate our NSIS configuration files from a python script written by a developer who no longer works with us, so we currently do not have anyone on staff who knows how to write NSIS config files. I have been tasked with modifying this script t...

Installer for .NET 2.0 application for Windows 98

How can an automatic installer for .NET 2.0 application be created for Windows 98? I mean for application and also for .NET 2.0 if missing. I tried to do it by creating a setup project for Visual Studio 2008, but I didn't succeed. I installed IE6 SP1 manually, but Installer still crashed. Windows Installer 2.0 is installed. It's impos...

How do I access Windows Event Viewer log data from Java

Is there any way to access the Windows Event Log from a java class. Has anyone written any APIs for this, and would there be any way to access the data from a remote machine? The scenario is: I run a process on a remote machine, from a controlling Java process. This remote process logs stuff to the Event Log, which I want to be able to...

Windows: Under what circumstances might SetEvent() not return immediately?

I have a thread that, when its function exits its loop (the exit is triggered by an event), it does some cleanup and then sets a different event to let a master thread know that it is done. However, under some circumstances, SetEvent() seems not to return after it sets the thread's 'I'm done' event. This thread is part of a DLL and the...

Is any Windows simulator available to test iPhone application?

Hi, Is there any windows simulator availabe through which I can test (only testing) my iPhone application on Windows XP? Thanks & regards, Khushi ...

How do you add Start->Run shortcuts in Windows XP?

Does anyone know how you setup new commands to launch an application from the Start->Run box? ie. you can type "firefox", "winword" or "excel" into the Run box and those applications will open even though they're not in the system path, but others won't. For example, with Firefox, there's no files named firefox.* in any of my system pat...

How to disable auto sleep on external USB hard drive in Windows XP

I've seen a related question on this website regarding a Linux system. I have the same question on a Windows XP OS. I bought a Winchester USB external HD, and found out from technical support that the sleep feature is in the firmware and cannot be turned off. I'm looking for an application that will automatically read/write to that dr...

How do you open an SSH Tunnel from a Windows client as a background program?

I would like a Win machine to tunnel into an SSH server whenever the machine starts up. I also want the win machine to reboot the SSH program if it ever crashes. The lighterweight & more stable the SSH program, the more happier I am. What options do I have with this? ...

How to combine GUI applications in Windows

I have a Windows GUI application that's using the QT framework (currently version 3.3.5, might change to QT4). I want to combine other Windows GUI applications in the main application. I can't use the widgets directly in the main application due to several constrains which I can't control. The final layout should look like this: Curr...

Python as FastCGI under windows and apache

I need to run a simple request/response python module under an existing system with windows/apache/FastCGI. All the FastCGI wrappers for python I tried work for Linux only (they use socket.fromfd() and other such shticks). Is there a wrapper that runs under windows? ...

What's the Best Way to Measure Memory Use from a Program?

I've been trying to optimize the Windows program I am developing, trying to find the best data structures that will minimize memory use. It loads large blocks of data, so with huge files, it can use a large amount of RAM. For memory measurement, I have been using GlobalMemoryStatusEx. See: http://msdn.microsoft.com/en-us/library/aa36658...

/dev/null in Windows?

What is the equivalent to /dev/null in Windows? ...