windows

In an ISAPI Filter, what server variable gives me the physical path of a virtual directory?

If I have an "application" defined in IIS Manager, I can get the value of the server variable APPL_MD_PATH to retrieve the physical path associated to the application. If I have a "virtual directory" configured, APPL_MD_PATH still gives me the physical path associated to the application, not the physical path associated to the virtual...

In an ISAPI filter, what is a good approach for a common logfile for multiple processes?

I have an ISAPI filter that runs on IIS6 or 7. When there are multiple worker processes ("Web garden"), the filter will be loaded and run in each w3wp.exe. How can I efficiently allow the filter to log its activities in a single consolidated logfile? log messages from the different (concurrent) processes must not interfere with eac...

VBScript! JScript! Wscript! ... oh my!

I need to write some scripts for WinXP to support some of the analysts here at Big Financial Corp. Please help me decide which type of windows scripting best fits my needs. My needs seem pretty simple (to me anyway) run on WinXP Pro SP2 (version 2002) not require my users to install anything (so Powershell is out. Likewise Perl, Pyth...

urlopen error 10045, 'address already in use' while downloading in Python 2.5 on Windows

I'm writing code that will run on Linux, OS X, and Windows. It downloads a list of approximately 55,000 files from the server, then steps through the list of files, checking if the files are present locally. (With SHA hash verification and a few other goodies.) If the files aren't present locally or the hash doesn't match, it downloads t...

How to access file metadata with Python?

Hi, I'm trying to write a program in python that retrieves and updates file metadata on windows. I've tried searching on Google regarding what modules to use but I haven't found anything very concrete or useful. Some people suggested the stat module which can give you info such as file access and last modification. But I'm looking to r...

WorkbookOpen Event doesnt fire with Windows Service, whereas it fires with windows applicaion.

Hi, when i am using below code with windows application it always fires WOrkBookOpen event. public partial class Form1 : Form { public Form1() { InitializeComponent(); } Microsoft.Office.Interop.Excel.Application app; private void button1_Click(object sender, EventArgs e) { app = new Microsoft.Of...

? in my file name

is there any way to write ? mark in a file name ...

Programs as MDI Child windows

Hi Is there a way to use a program as a MDI child window. I am thinking of having one main MDI parent window which can have multipe child windows, some of which will be programs(.exe files) in there own right. Tim ...

possible to convert ruby script to exe so that source code not visible ?

possible to convert ruby script to exe so that source code not visible ? ...

What creates the three close/minimize/maximize icons in the top corner of a window? (C++)

I am making a C++/Windows/DirectX program, and when it runs in windowed mode (using d3dpp.Windowed = (!FULLSCREEN); where FULLSCREEN is defined as 0), the three icons that are usually at the top of any window (minimize, maximize/restore, and close) are not there. Also, it's not like just an image with no border or anything, it looks ...

Choosing Windows File Open and File Save Dialogs - What is the Best Practice?

For some time I've noticed how much the File Open and File save dialogs vary between Windows itself and Applications. In Delphi for example (which I use) you can use the built-in dialogs (which have a folder tree) and direct calls to the Windows API which produce variants of the Windows version, with or without large buttons for 'Desktop...

cronJob on windows

i wanna to create a cron job on windows that daily delete files from a specific folder. how can i do this?? Thanks in advance ...

How to know active audio device for sox in windows

I'm trying to stream sound from my soundcard using sox's default audio device and dump it as a raw file. Unfortunately no sound is being detected. Sox always use this as input and I think it's for linux.(correct me if i'm wrong but it doesn't really emit any sound in windows) '/dev/dsp' (ossdsp) ...

Is it possible to compile Windows binaries on a linux machine?

At my work all of the project data resides on an NFS that is accessible from both Linux and Windows machines (using Samba). All of the work is done on Linux, but I'm toying with the idea of compiling some of tools for Windows so that I can debug with Visual Studio. I already have a nice makefile that can build the code for both 32-bit ...

Is it possible to load 2 file explorer windows in 1 form?

I would like to have a form that has 2 windows file explorer(explorer.exe) views. I know I could code a file browser in a few days, but I much rather just use instances of explorer. I dont need to re-invent the wheel, just two windows connected by a form. Is this possible in C#? ...

Python: how do I install SciPy on 64 bit Windows?

How do I install SciPy on my system? Update 1: for the NumPy part (that SciPy depends on) there is actually an installer for 64 bit Windows: numpy-1.3.0.win-amd64-py2.6.msi (is direct download URL, 2310144 bytes). Running the SciPy superpack installer results in this message in a dialog box: "Cannot install. Python version 2.6 require...

How to Add a Desktop Shortcut Option on Finish Page in NSIS installer?

I'm trying to create an installer using NSIS Modern User Interface for the first time. I would like to know how I can add an option (checkbox) for users to select to have a desktop shortcut created on the Finish Page (the last screen of the installer) in addition to the "Run XXXX" option that's already there. ...

Internet Explorer 8 64bit and Selenium Not working.

I am trying to get selenium tests to run. Yet every time I try to run a tests that should run IE I get a error on line 863 of htmlutils.js It says that I should disable my popup blocker. The thing is I went to IE tools-> turn of popup block. So it is disabled and I get this error. Is there something else I need to disable. I actually d...

how can I play the songs one after another in windows media player

I'm developing a VS 2008 C# coded Windows media player using axWindows media player control available in Visual Studio. I have stored the song paths in a SQL server 2005 database and I'm able to play one song at a time now. I want my application to play the songs from the database continuously without asking anything. How can I achieve t...

How to use Windows Forms in a C/C++ application?

I have an existing project created using C/C++ under a development environment. Currently we want to facelift the existing form using a Window Forms application but the problem is the existing project is using Common Runtime Library = No /CLR and Runtime Library = /MTd. But the a Windows Forms application is using Common Runtime Libr...