windows

Run Process and Don't Wait

I'd like to run a process and not wait for it to return. I've tried spawn with P_NOWAIT and subprocess like this: app = "C:\Windows\Notepad.exe" file = "C:\Path\To\File.txt" pid = subprocess.Popen([app, file], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE).pid However, the console window remains until I close Notepad. I...

Apache mod_rewrite: RewriteMap directive using PHP script on Windows machine

This has been driving me insane. I can't seem to get the RewriteMap directive to work for a php script on windows. Here is the relevant snippet from my httpd.conf file: <IfModule mod_rewrite.c> RewriteEngine on RewriteMap router "prg:C:/dev/web/www/routing.php" RewriteRule (.*) ${router:$1} </IfModule> My simpl...

How can I package the .NET framework with an executable without using an installer?

I have an executable that displays a simple windows form. Unfortunately this application will not run if the user does not have the .NET framework installed. I would like to be able to detect if the user's machine has the .NET Framework installed, and if not, give them the option to download and install it. I know that this is possibl...

EventLog WriteEvent - how do I suppress the text "For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."

When writing my own events to the error log, do I have to have the following text inserted on every message? Is that provided by the error reader of the Microsoft Event Viewer or is that inserted with every message? For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. How can I suppress it? ...

How Can I Add An Item To Folders Menu Of Right Click?

I need to add an item to folders right click menu when clicked send folder address to my app. how can i do it? it'll be a great help if you describe how to make popup menu for that item and how can i use images for items? something like WinRAR.... and what about file types? same ways? thank you. ...

Windows Vista+ Memory Problem with IFileOpenDialog and large stack

I have experienced a strange problem in windows vista and above. When I use the IFileOpenDialog with a large stack, the amount of memory remaining after showing the dialog drops by about a gigabyte. #include <windows.h> #include <Shobjidl.h> #include <iostream> void memGrab(char *); int main(int argc, char **argv){ char Message[128];...

Detecting if path is on a windows mapped network drive

Hello, Is there a simple way to tell if a given path lives on a mapped network drive? Or to tell if a given drive is a mapped network drive? I hoped they would have a reparse point attribute but GetFileAttributes() returns nothing but a directory flag. ...

What is the best approach to port an Android application to Windows?

I used Eclipse with the Android SDK to develop the original application. I ask since this was my first Java (and Eclipse, and Android, and XML) project. I assume that most of the Java should run on the PC without too much trouble. I may want to restructure the code to isolate the Android specific functions. Should I stay with Eclipse or ...

cap deploy:cold fails with 'No such file or directory - git rev-parse master' error

Hi, I am trying to deploy my rails application for the first time. Server is running Ubuntu 10.4 server (64bit) Local machine is running Windows XP. Repository is at github I have successfully run cap deploy:setup but when I run cap deploy:cold I get the following error: D:\Rails\rails_apps\fx>cap deploy:cold You are running ...

How to tell, using Perl, if a windows service is stalled, but still running

I have a problem that probably is not unique, but certainly does not seem to be widely reported. I need a method to ping a windows service that will tell me if it has stalled out, even if windows is reporting that it is running. I would prefer to use have a Perl solution but would accept any solution that someone can come up with. Tha...

Is there anything like inotify on Windows?

I like the inotify subsystem in Linux. However, I'm mainly a Windows user, so I was wondering if there's anything similar? ...

About Microsoft's String Safe Functions.

WCHAR* someString = L"SomeString\n"; WCHAR s1[MAX_PATH]; // I'm sure this is right code. StringCchCopyW(s1, _countof(s1), someString); // But I'm not sure about these example. StringCchCopyW(s1 + 100, _countof(s1) - 100, someString); // Is it right? StringCchCopyW(s1 + 100, _countof(s1), someString); // Is it right? // How about these...

How do I know if the shift is pressed using RawInput?

I'm using RawInput to deal with keystrokes. I'm finding it hard to determine if the shift is pressed together with a key. From the RawInputStructure -> RawKeyboard, I can retrieve the key being pressed but I'm not sure how to go about things if the keys were pressed at the same time. RI.Data.keyboard.VKey (gets the keycode) I'm trying...

how do i know what python scripts are running in windows?

as above, is there a way to find out what python scripts are running in windows? ...

What's the difference between pipe and socket ?

Both can be used for communicating between different processes, what's the difference? ...

Can we mention path in installer

I am using c# windows installer to install a service. Can I mention the path where that installer has to install the service? ...

About using CreateFile to open a pipe in windows:

Quoted here: hPipe = CreateFile( lpszPipename, // pipe name GENERIC_READ | // read and write access GENERIC_WRITE, 0, // no sharing NULL, // default security attributes OPEN_EXISTING, // opens existing pipe 0, // default attribut...

Have Objdump- D only display specific function

I am having troubles using objdump in windows command prompt for a C program. I want to display the machine code of a specific function and lines. For example, in Linux I would enter: objdump -D x.out | grep -A20 main.: What would the equivalent be in windows? I am just digging into understanding machine code, so forgive me if my as...

What's the fastest C++ linker for Windows platform?

Hello, Apparently the speed of the C++ linker in Visual Studio 2010 hasn't improved that much (about 25% in our case). This means that we're still stuck with linking times between 30 seconds and two minutes. Surely there are linkers out there that perform better? Does anyone have experience with switching to another linker or even a com...

What is the best way to use linux utilities under windows?

Linux utilities like sed, awk and other shell scripting features are awesome and life becomes a lot harder when I am developing on windows and cant use any of these. People suggest to use cygwin for those who want the linux like tools under windows. But I feel cygwin will be an overkill for someone who only wants to use the handful comm...