windows

how to direct output into a txt file in bat script in windows

hi, all in linux, let say i want to start tomcat, and want to direct all the console log into a text file, i can do write a bash script: ./startup.sh > output.txt but in windows, can we do the similar stuff using .bat script. how can i write this bat script??? (i know the proper way should ask the application to do the log, but the ...

Why Msjetoledb40.dll is missing in Windows 2008 core - 32 bit and R2 as well?

Hello, I am working on Windows 2008 core R2 and 32 bit. While running application in which I am trying to connect to .mdb file by ADODB connection and using provider as 'Microsoft Jet Provider 4.0' . To get the connection done Msjetoldb40.dll is necessary. But it is not present in Windows 2008 core R2 and 32-bit ( which is of only com...

Why can't I use more than 20 files with my Perl script and Windows's SendTo?

I'm trying to emulate RapidCRC's ability to check crc32 values within filenames on Windows Vista Ultimate 64-bit. However, I seem to be running into some kind of argument limitation. I wrote a quick Perl script, created a batch file to call it, then placed a shortcut to the batch file in %APPDATA%\Microsoft\Windows\SendTo This works g...

windows exe to linux exe

Hi Is there a software that will convert a windows executable to linux executable rather than emulating windows api in linux(wine)? ...

Making a memory intensive background application "friendly"

I have an application that periodically needs to process large blocks of data with a computationally trivial algorithm. It turns out I can also prevent slowing down the system from hard drive accesses by keeping the blocks of data in a memory cache. The application is a low-priority application so I'm working to minimize its impact on th...

Catching WM_GETMINMAXINFO from notepad.exe doesn't work

Hello! I want to catch all WM_GETMINMAXINFO messages which are sent to the "nodepad.exe" application. My base app is written in C#, the DLL with the windows hook is written in C. Let me show you the hook inside the C DLL: file: dll.h #ifndef _DLL_H_ #define _DLL_H_ #include <windows.h> #if BUILDING_DLL # define DLLIMPORT __declspec...

How would you make a Windows application that conditionally blocks input?

You may have heard of PawSense, a Windows-only utility that prevents keystrokes from being entered when it believes there is a cat or other animal on the keyboard typing nonsense input like "zlxkkkkkkkk;". It seems like a fun project to do in my spare time but I was wondering about some details of implementing it. I think I could do the...

memory mapped files reamain in physical memory

I have a process that uses a lot of memory mapped files. Problem is that those files are kept in physical memory, even when the machine is low on memory, and other processes require this memory. I've tried using SetProcessWorkingSetSize to limit the process working set, but it doesn't help, the process' working set keeps growing over th...

How to check a file every 1 minute in a windows bat script?

I want to write a bat script to check a text file (log). If the log is over 10M, I want to delete some portion of the file, only keep the last 500 lines, and delete all the old content. So there are two issues: how can I check the file every 1 minute, and how can I delete only a portion of the content? ...

Open containing directory in Windows Explorer from IntelliJ

Is there a way (keyboard shortcut?) to open the folder of the currently opened file in Windows Explorer? What I mean is this: When a java source file is open in IntelliJ, I'd like to open Windows Explorer on the folder containing that file. Is there a short way of doing that? ...

Installing IBM JRE on Windows (a non-IBM machine)

I'm developing a Java 5.0 application that connects to Websphere Application Server default messaging queues. My application will be deployed on Windows server (with sun JDK installed by default), in order to connect to the Websphere queues I have two choices: Using IBM JRE Using sun JRE, copying some IBM JRE's jars, setting some JVM ...

C++ library for making GUIs

Hi, I am looking for a simple C++ library for making GUIs. I tried wxWidgets and GTK, but I think both are complex. I want your opinion on what to use. Should I learn wxWidgets or you know a better one? Thanks. ...

Suggest Web Host for Java in windows environment

Hi, Please suggest the good and cheap web host with java language support in windows env. I am familiar with windows,apache tomcat,mysql,java and searching for best deal. ...

Learning C++ on Linux or Windows?

Hi, Since you 'should' learn C/C++ and as part of 'learn as much languages as possible', i decided to learn C++ in depth. My OS is Windows and my question is should i re-install Linux as a dual boot to learn C++ on Linux? Do i miss something if I develop in C++ only on the Windows platform? (possible duplicate: http://stackoverflow.c...

RealBasic to write Windows applications?

Hello, Before I go ahead and invest time checking out RealBasic, I'd like some feedback from people who have moved on from VBCLassic and use the Windows version of RealBasic to write professional business applications. Is the language good enough, are there enough third-party add-on's to solve the inevitable shortcomings, etc.? Thank ...

InfoPath Form Registration and Case-Sensitive File Path Strangeness: What's going on here?

Recently I had to troubleshoot a very strange issue with a fully-trusted InfoPath 2007 form at a customer site. The form is part of a records management application and users launch the form from within the application. However, because the form is subject to frequent updates, we store a "master" copy of the form file on the customer's...

Receiving order of socket

Hi, I am using socket to send data from local machine to remote in TCP, stream mode. The code in the local side is : // ----------- Local send(sd, pData, iSize, 0); // send data The size of the data is about 1Mb, so socket might divide it to several packets. While I am recieving the data on remote side, I have to recieve the data se...

Add to Windows Shell Extension Context Menu

I have read these: http://stackoverflow.com/questions/76553/adding-item-to-the-desktop-context-menu-in-windows http://www.informit.com/articles/article.aspx?p=169474 http://msdn.microsoft.com/en-us/library/bb776852%28VS.85%29.aspx But I cannot find an up-to-date and straightforward piece of information on how to create a context menu...

How to find whether system has the font I needed in MFC?

I want to write the following function bool IsFontExistInSystem(const CString& fontStyle) const { } Is there any API in windows to do this? Many Thanks! ...

How to Enable/Disable Jumbo Frames in NIC Card using VC++ [Programmatically]

Hi, I wanted to know how to enable or disable jumbo frames for Installed NIC Card Programmatically.. For Installed NIC Card..We can set in using GUI..But i wanted to do it Programmatically in VC++ Answers will be Highly Appreciated. Thanks in Advance. ...