windows

Windows Client Choose between 2 DHCP servers in the same lan.

I have two DHCP in the same network. One with IPs 10.0.0.0 and the Other 192.168.0.0. How do I configure my windows XP to choose between one of them. Thanks ...

Is there an easy way to determine the type of a file without knowing the file's extension?

I have a table with a binary column which stores files of a number of different possible filetypes (PDF, BMP, JPEG, WAV, MP3, DOC, MPEG, AVI etc.), but no columns that store either the name or the type of the original file. Is there any easy way for me to process these rows and determine the type of each file stored in the binary column...

How to indent a selection in gvim (win32)?

I'd like to indent a block of text. I am able to do this in the linux build of givm. I do this is the state of gvim where I'm not in the insert or visual mode. The bar at the bottom is blank on the left and the line number, percentage are showing on the right hand side. Then I perform the following procedure: I select a block of text...

Problem with relative path in Python

I know this is a simple, beginner-ish Python question, but I'm having trouble opening a file using a relative path. This behavior seems odd to me (coming from a non-Python background): import os, sys titles_path = os.path.normpath("../downloads/movie_titles.txt") print "Current working directory is {0}".format(os.getcwd()) print "Titl...

What Arguments are you supposed to give to the Windows API call VerQueryValue

I understand the first argument must be the result of GetFileVersionInfo(). The third and forth are target buffer and size What is the second argument, lpSubBlock? Thanks In Advance ...

Save information from MS crash reporter?

On Windows XP when a process crashes, we get a dialog box with a link: "To view technical information about the error report, click here." The "click here" link brings up a whole lot of information in a window, but no obvious way to save it to a file. Is there a way? It would be very nice to be able to send that data to several differe...

FTP Login using Windows Credentials.

We have a C# windows application that needs to be able to connect to a server on a network, download and save a file to a specified location. We can not use a web service as we can not assume that our clients will have IIS on their server. The way that I am considering doing it is to FTP onto the server and download the file. I can wri...

Autorun an MSI file on CD

Does anyone have an example AUTORUN.INF which can launch an MSI installer automatically when the user inserts the CD. I'm sure this can be done but I've been Googling around for ages and have not found any working solution. UPDATE: I have an AUTORUN.INF similar to this but it won't launch the installer: [autorun] open=MyInstaller-1.0....

Releasing Windows file share locks

This problem crops up every now and then at work. Our build machine can have it's files accessed via a normal windows file share. If someone browses a folder remotely on the machine, and leaves the window open overnight, then the build fails (as it has done now). The explorer window left opened points at one of the sub folders in the sou...

Set Event Log settings via GPO

How would I set the "overwrite as needed" setting on Event logs other than Application/Security/System? Specifically I'd like to apply this to the Powershell and Windows Powershell Logs, in addition to any other future logs that may be added. This needs to be applied to both server 2003 & 2008. ...

LPCSTR, LPCTSTR and LPTSTR

What the difference between LPCSTR, LPCTSTR and LPTSTR? Why do we need to do this to convert a string into a LV_ITEM structure variable pszText: LV_DISPINFO dispinfo; dispinfo.item.pszText = LPTSTR((LPCTSTR)string); ...

strptime() equivalent on Windows?

Is there a good equivalent implementation of strptime() available for Windows? Unfortunately, this POSIX function does not appear to be available. Open Group description of strptime - summary: it converts a text string such as "MM-DD-YYYY HH:MM:SS" into a tm struct, the opposite of strftime(). ...

Visual Studio 2008 Installer Project - Custom Actions not firing

I can't seem to get a custom action working. I might be doing this wrong. Here's what I'm trying to do: I'd like to run a custom action in my application install (Visual Studio Installer project) that runs an executable. The executable simply does some system.io filecopy tasks, and I've confirmed that the executable when ran by itsel...

How to get the name/description of an exception?

How do you get the name and/or description of an SEH exception without having to hard-code the strings into your application? I tried to use FormatMessage(), but it truncates the message sometimes, even if you specify to ignore inserts: __asm { // raise access violation xor eax, eax mov eax, [eax] } Raises an exception ...

Accessing a list of avaliable Wifi APs, on Windows Mobile.

I need to query for a list of available Wireless Access points. I only need their SSIDs. The App is currently .Net CF 2.0, but it's not a problem going with 3.5 if we have to. ...

Best way to manage Multiple Windows?

I am doing Java web development on WindowsXP. At any given time, I will have open all of the following windows: Eclipse, Outlook, Firefox (with 3-4 tabs), IE (with 3-4 tabs), Putty, 2-3 File Explorer windows, SqlDeveloper, 1-2 View Source windows, SmartSVN, a music player, an IM client, Google toolbar, etc., etc. I use all the area o...

What is Teredo Tunneling Pseudo-Interface?

Running ipconfig /all shows a Teredo Tunneling Pseudo-Interface. What is that? Does this have something to do with IPv4 vs IPv6? Should I get rid of it? If so how? ...

Win XP msvcrt crashes

Do any one know why an application that always ran on Windows XP now suddenly crashes the msvcrt.dll? There were only minor changes made to the threading classes, which was done under Vista in VC++ 6. For all our libraries to work we are Dynamically linking to the MFC dlls. A newer version of msvcrt does not solve the problem. Any i...

Windows Command Line: Non Evaluation of Environment Variable

I would like to provide the raw text referring to an environment variable to a command instead of evaluating the environment variable. I need this to configure BizTalk from the command line, for example: BTSTask.exe AddResource -ApplicationName:App1 -Type:System.BizTalk:BizTalkAssembly -Overwrite -Source:..\Schemas\bin\development\Ap...

Subversion auto-props woes

This is driving me nuts so any advice from fellow users would be welcome. I am using Subversion, with a copy of VisualSVN 1.6.1 installed on a Windows server. On my PC I am using a combination of TortoiseSVN and the wonderful AnkhSVN Visual Studio plugin. Everything works like a dream, but now I am trying use the svn:keywords feature ...