windows

Moving a file to the Recycle Bin (PHP)

Hi, This question is related to a Windows install of PHP5. Doing a file unlink() makes it difficult for recovery. Instead I would like to move the file to the Recycle Bin (without doing an exec()). Do you have any idea? Thanks for your help. ...

What is the best way to map windows drives using Python?

What is the best way to map a network share to a windows drive using Python? This share also requires a username and password. ...

DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR, ULONG_PTR When, How and Why?

Hello I found that Windows has some new Windows Data Types DWORD_PTR, INT_PTR, LONG_PTR, UINT_PTR, ULONG_PTR can you tell me when, how and why to use them? ...

What HTTP traffic monitor would you recommend for Windows?

I need the sniffer to test network traffic of applications developed by me for Windows and Facebook. Basic requirements: -display request and response -display HTTP headers -display the time it took to complete HTTP request Now I'm using HTTP Analyzer. A very good tool, but it terminates with some error after 10-15 min running on Vista....

Is it possible to add a network drive to %PATH% environment variable

Hi, I have a python script calling an exe file. The exe file can be in the same folder as that of the python script or in a network drive. Is it possible to call the exe if it is in a remote drive/computer? Can this be done by setting the %PATH% variable ...

Finding out Last logon time in Windows through Powershell

How do you find out the last log-in time for a windows machine(any user) through powershell? ...

Batch output redirection when using start command for GUI app

This is the scenario: We have a Python script that starts a Windows batch file and redirects its output to a file. Afterwards it reads the file and then tries to delete it: os.system(C:\batch.bat >C:\temp.txt 2>&1) os.remove(C:\temp.txt) In the batch.bat we start a Windows GUI programm like this: start c:\the_programm.exe Thats al...

wix 3.0 unexpected child element 'Website'

I am trying to create a website installer and am using wix. i am using this tutorial http://www.dalun.com/wix/01.05.2007.htm i had to change my script to use <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt; because it was complaining about <Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'&gt; so my script looks...

Touchpad's absolute touch coordinates

Is it possible to read input directly from a Alps touchpad? I am trying to turn my touchpad into a cheap drawing tablet so I need to read the raw unprocessed x and y coordinates of where it was touched relative to the physical touchpad. So if I touch the bottom left corner of the touchpad, it should correspond to (0,0) etc. I am trying...

Windows Batch Search and Replace Question

I have a small batch file to search and replace within a batch file. I am having difficulty removing things (eg replacing some text with a null value). Am sure it is simple but not found anything by searching! This is the file: Where you see xxxxx and yyyyy is where I need a blank! Cheers. @echo off setlocal enabledelayedexpansion ...

Monitoring a process in Windows

How can I monitor a Windows process and start it up if it is not running? I'd like to have something that starts up as a Windows service and can handle multiple processes. EDIT: Hopefully there's a ready to use library/component I can use and just tweak or configure instead of having to implement it from scratch. I know in the *nix worl...

Run a console application from a windows Form

Hi all, I have a windows console app (that accepts parameters) and runs a process. I was wondering if there was any way to run this app from within a windows form button click event. I would like to pass an argument to it as well. Thanks ...

Windows file share (with VMWare Player) corrupting files

I'm running Debian on VMWare Player on an XP SP3 host. I'm using VMWare's folder share. I'm running jetty on Debian, and editing files in Windows. I have the following stange behavior: Jetty is running I edit a javascript file (that's being served by jetty) in a editor in Windows, and hit save. I reload the webpage in a browser, an...

What exactly is the risk when using TerminateProcess?

My Win32 console applicaton uses a third-party library. After it exits WinMain global objects destruction begins and an AV happens somewhere deep inside. I'm really tempted to just write TerminateProcess( GetCurrentProcess(), 0 ); somewhere near the end of WinMain. If I do this the application ends gracefully. But MSDN says that doin...

Looking for SVN and bug-tracker recommendations

Hi, We are starting now a new software project. We are 5 developers, located in US and Asia. We have a server hosted in the US and we plan to use it. We can set a SVN repository on it. It's a Linux server. Below please find our requirements: 1. Windows good client. We develop on Windows (VisualStudio). 2. Private working-space on Windo...

How can I find out the current color depth of a machine running vista/w7?

Hi! I want to check the current color depth of the OS to warn users if they try to run my application with a "wrong" color depth (using c++ & Qt). I guess there's a win api call to get this information, but I couldn't find anything... Thaks for any hint, Hannes ...

.NET IO redirection - read output char by char

I am launching another process from by C# application, and came to a problem: is there any way to read process output char-by-char, not line-by-line? I desperately need that because the other process is a command-line engine, and I need to send a command to it, read output and somehow understand when it is done. The way it indicates that...

How to open connection to local network path protected by password in smart way? (Whith C#)

Hi, I developing program witch have to write some data in file whom are stored in network computer witch are protected by password. Now I'm doing this way - open connection with cmd then write data. static bool ConnectToSrv() { String myUser = "domain.local\\user"; String myPass = "pwd"; String cmdStrin...

Disabling parts of the SaveFileDialog

Hi, I'm building an application where I need to use a saveFileDialog. The problem is that I want to restrict the users from using some parts of the saveFileDialog (e.g. I don't want them to edit the name of the file). I've heard that it's very difficult to do this using Windows forms SaveAsDialog. Do you know how to do this in native c...

How can different instances of the same form class use different window class styles?

Hi, I try to use the following technique in order to enable/disable the shadow effect for a window: (The CreateParams is of course overriden. The TToolWindow descends from TForm). procedure TToolWindow.CreateParams(var Params: TCreateParams); var LShadow: boolean; begin inherited; if (Win32Platform = VER_PLATFORM_WIN32_NT) ...