windows

Does mod_rewrite work for windows servers too?

Does mod_rewrite work for windows servers too? If not, how does windows use regular expressions the same way you can using the .htaccess file in Apache? ...

set windows PATH environment variable at runtime in Java

I have a java program that fires off an executable using the Runtime.exec() method. I'm using the variant that takes in a set of command line params as one argument, and some environment variables as another argument. The environment variable I'm tryign to set is path, so i'm passing in "PATH=C:\some\path". This does not work. Is there...

Can't run os.system command in Django?

We have a Django app running on apache server (mod_python) on a windows machine which needs to call some r scripts. To do so it would be easiest to call r through os.system, however when django gets to the os.system command it freezes up. I've also tried subprocess with the same result. We have a possibly related problem in that Djang...

Routine for windows recursive copy of a folder - just subfolders with a certain name

Should be suitable for copying from UNC drive. Only subfolders named "XYZ" and their chidren are copied. Parent hierarchy is kept. Is there one line routine for doing that ? Generally speaking anything will do ( .Net , PowerShell ). ...

How to launch a web server and point the browser to it when it finishes?

I am writing a windows batch file to do the following things: Display a picture in the middle of the screen, showing the beautiful icon of my software. Kick of the launch of the web server. Finish displaying the picture. Point the browser to the start page. I have already know how to do it in step 2 and 4. However, I have the followi...

File.open with ruby on windows with a unicode filename

I have a script running on Ruby 1.9.1 on Windows 7 I've distilled my script down to File.open("翻譯測試.txt") and still can't get it to work. I know there are issues with Ruby 1.9 filename handling on windows (Using the Windows ANSI library), but would be happy enough with a work around that is callable from Ruby ...

WebBrowser control not submitting form, IE 7 works

We are using a WebBrowser control in our win forms application which is running in terminal services. IE 7 is the browser that is installed for the session. We are using WebForms to generate the web pages. If we try and submit a web page in the WebBrowser control it does not work. The submit button does not push down. If we try and su...

PHP UUID extension DLL file for windows

When i tried to connect to Apache Cassandra server using the php code i got an error "Fatal error: Call to undefined function uuid_make()". I can find that PHP UUID extension was missing in PHP installation. Can anyone please suggest from where i can download the DLL file for PHP installation in my Windows 7 Machine. ...

How should a software product handle an access violation

We have a software product in c++, that due to documented problems with the compiler generates faulty code (Yes I know it is horrible in itself). This among other bugs causes Access Violations to be thrown. Our response to that is to catch the error and continue running. My question is, is this a responsible approach? Is it responsibl...

Windows Service HTTPListener Memory Issue

Hi all, Im a complete novice to the "best practices" etc of writing in any code. I tend to just write it an if it works, why fix it. Well, this way of working is landing me in some hot water. I am writing a simple windows service to server a single webpage. (This service will be incorperated in to another project which monitors the ser...

Getting timestamp of module from crash minidump

Is there a way to get the timestamp of any module from crash dump. ...

Changing checksum of a binary

How to modify checksum of a binary? Specifically, I want to edit embedded checksum in a dll/exe. Are there any tools available? ...

Windows Batch Script Question

So I need a Windows Script that I can tell it a directory to go through and it will parse all sub-directories and while in each subdir, will archive all files with a certain file extension and keep it in the same subdir, then move onto the next one. What's the best way to go about this? Perl Automation Scripting, AutoIt? Any sample cod...

Getting timestamp of module from crash minidump

Is there a way to get the timestamp of any module from crash dump. ...

xperf can't load my DLL's symbols

I'm trying to use xperf to profile my DLL, but it refuses to use my DLL's PDB file. Running xperf on the .etl with -symbols, I get: DBGHELP: mydll- private symbols & lines C:\mydll\debugu\mydll.pdb - unmatched Which leads me to believe it thinks my PDB doesn't match the DLL the application is using. This is wrong; it does mat...

What does the 0x80 code mean when referring to keyboard controls

Hi, what does the 0x80 code mean when referring to the keyboard controls in C++ Windows environment? For example, if(GetKeyState('K') & 0x80) { //do something } Thanks everyone! ...

Where should I store an executable program in Windows?

I have a little utility that I need to use, and I'm not sure where to have users save it in windows. I want to know what is the Windows directory equivalent of /usr/bin ? -mcpeterson ...

Combining the value of GetLastError and a custom error message

I have a function that returns a different DWORD value for each case there is an error. So I have the following defines: #define ERR_NO_DB_CONNECTION 0x90000 #define ERR_DB_NOT_OPEN 0x90001 #define ERR_DB_LOCKED 0x90002 #define ERR_DB_CONN_LOST 0x90003 Now, I return those values when an error occurs. I nee...

Best windows text editor with SVN integration?

I wasn't sure if this is SuperUser or StackOverflow material, but since the end result is for programming I'll start here. I'm looking for a lightweight editor with svn support. What is your favorite? ...

getting detailed information about structured exceptions

My Visual C++ application is compiled with /EHA option, letting me catch structured exceptions (division by zero, access violation, etc). I then translate those exceptions to my own exception class using _set_se_translator(). My goal is to improve our logging of those types of exceptions. I can get the type of exception from the EXCEP...