windows

Python multiprocessing for bulk file/conversion operation on Windows

I have written a python script which watches a directory for new subdirectories, and then acts on each subdirectory in a loop. We have an external process which creates these subdirectories. Inside each subdirectory is a text file and a number of images. There is one record (line) in the text file for each image. For each subdirector...

Is there any er diagram tool in Windows that I can use to connect to a MySQL 4.1 database in Unix?

I have a few test databases in some Unix SUSE 8 servers and initially the plan was to find some tools which can directly create the ERD straight from the server until someone told me that I can find tools to connect from the Windows PC straight to the Unix MySQL database. So I saw MySQL query analyzer which can do this but unfortunately...

Using FTP how do I rename a directory with trailing spaces?

I have a directory on my website the has two trailing spaces (automatically created) and now I need to rename it to the same name with out the spaces. For example: ren "BON N ALL " "BON N ALL" But I keep getting; ftp> ren "BON N ALL " "BON N ALL" 550 BON N ALL : The system cannot find the file specified. I've tried using wildcar...

From cmd.exe script, how can I schedule a task to run on next boot (and never again)?

As part of a very simple cmd.exe install script, I need to run a program the next time the machine reboots. I don't want it to run after that (it's a one-shot configuration tool). The program will actually be another cmd.exe script but any example should do since I can run cmd /c on the script itself. What's the best way to go about do...

How do I transform the working directory into a 8.3 short file name using batch?

I'm writing a build script, and if the directory the user's building the script contains spaces, everything falls apart. To go around that, I thought of using 8.3 filenames so that drive:\Documents and setttings\whatever becomes drive:\Docume~1\whatever . The current directory can be found by querying the environment variable %CD%. How ...

Displaying translucent / irregular-shaped windows with Qt

Is it possible to display translucent and/or irregular-shaped windows with Qt? (I'm assuming it ultimately depends on the capabilities of the underlying GUI system, but let's assume at least Windows XP / Mac OS X) If so, how does one accomplish this? ...

How can I make a file trully immutable (non-deletable and read-only)?

I need to make a file truly read only - to keep it as is. No delete, no nothing. (Setting the 'ReadOnly' attribute isn't an option) I see now some approaches: Use a program to keep the file open. Drawback: One can kill the process an then the file closes. Use a program to set the security attributes. Drawback: The file can be deleted...

How to change default audio input device programatically

I am looking for a way to set/change default input device inside my application. I have several different recording devices and it is very anoying to go into the control panel and change default recording device. I was looking around and I did not find anything that could help me with the problem. Application is written in c# and it is t...

Application started by user or another application?

Hey everyone, This is a very general question: I was wondering whether it is possible to find out whether an application (any kind of application no matter if it a delphi-application or java or whatever) was started by a user or by another application? And if it is possible and I see that an application was called by another one, can I ...

Compiling C-code from the Command Prompt in Windows?

Hello! I want to compile C code from the Command Prompt in Windows. I have added the environment variable to the PATH and I can compile .cs files with: csc app.cs That's OK, but how do I compile app.c? ...

Name of applications running on port in Perl or Java

Xampp comes with a neat executable called xampp-portcheck.exe. This responds with if the ports required are free, and if not, which applications are running on those ports. I can check if something is running on a port, by accessing the netstat details, but how do I find out the application running on the port within Windows? ...

Memory leakage in c# windows service multithreading application

I have a windows service multithreaded application for indexing purpose which have six threads. It is working fine except memory leakage. Actually when the service is started, then the service is consuming 12,584kb memory, after some time it is taking memory of 61,584 kb. But after indexing process is complete it is not releasing memory....

i need to check the status of the services that run in a remote computer using C#?

i m using the following code. ServiceController MyController = new ServiceController(); MyController.MachineName = server_txt.Text.Trim(); MyController.ServiceName = "Service1"; string msg = MyController.Status.ToString(); Label1.Text = msg; This code work fine in the network computers wh...

FillRectangle has no effect on Graphics from Bitmap?

I have code: using (Graphics g = control.CreateGraphics()) { Bitmap bm = new Bitmap(r.Width, r.Height, g); using (Graphics gbm = Graphics.FromImage(bm)) { gbm.FillRectangle(Brushes.Green, r); form.BackgroundImage = bm; form.BackgroundImageLayout = ImageLayout.Zoom; } } But that FillRectangle doe...

Windows incremental backup script

I'm from a linux background, and need to run an incremental backup script on windows. I already have a batch script which dumps my database into a file. What I'd like is to only keep backups for the last seven days in addition to one backup file per week for the last 4 weeks (for example). I presume it's possible to do something like thi...

Is there a Microsoft C based list collection?

I am using C NOT C++! I know the C++ collections, but I was wondering if Microsoft has a C based List structure of some type, like the linux kernel provides, that I can use in a user mode project? I would prefer not rolling my own. ...

How do you specify a Java file.encoding value consistent with the underlying Windows code page?

I have a Java application that receives data over a socket using an InputStreamReader. It reports "Cp1252" from its getEncoding method: /* java.net. */ Socket Sock = ...; InputStreamReader is = new InputStreamReader(Sock.getInputStream()); System.out.println("Character encoding = " + is.getEncoding()); // Prints "Character encoding = Cp...

Cannot install XML::LibXML module on Windows

I am trying to use XPath to extract some HTML tags and data and for that I need to use XML::LibXML module. I tried installing it from CPAN shell but it doesn't install. I followed the instructions from CPAN site about the installation, that we need to install libxml2, iconv and zlib wrappers before installing XML::LibXML and it didn't ...

How can I enumerate sockets on a given windows process?

I need my program to check if a given Windows process is abusing the network. I would like to enumerate the process tcp and udp sockets, and see how much data they transferred during a given period. Is there a C or .Net API that can provide such info? ...

Discovered: Run A Video In An Image

okay i have found the way to run a video in a image.... the procedure as given below 1 - Run a video in Windows Media Player 2 - While the video running, Press Print Screen 3 - Paste it in MS Paint 4 - Save the image in JPEG or BMP format 5 - Run any video in Windows Media Player again 6 - Now open that image, in Windows Page\Fax V...