windows

VBA How to get path to The Current Users Application data folder?

In general, Using VBA, how do I determine where the Current users Application Data folder is? The FileSystemObjects special folders only knows about 3 folders WindowsFolder SystemFolder TemporaryFolder Specifically, I need a Word Macro to copy a file to the a folder under the Application Data folder. e.g. In VB.Net I can use My....

char array to LPCTSTR conversion in c

Does anyone know how to convert a char array to a LPCTSTR in c? Edit: For more reference, I need to add an integer to a string then convert that string to LPCTSTR for the first parameter of the windows function CreateFile(). This is the hardcoded example which I am currently using, but I need to be able to pass in any number to use as...

desktop word-capture

If you know babylon translation tool you'd know its word capture feature - when you right click on a word - it tanslates it (from a browser or any documtent). I want to get the same tool - what program language should i use ? The os i want to get it work on is win-xp and ubuntu. and I'm writing my program in java. if it could happen fr...

Can I make Python 2.5 exit on ctrl-D in Windows instead of ctrl-Z?

I'm used to ending the python interactive interpreter using Ctrl-d using Linux and OS X. On windows though, you have to use Ctrl-z and then enter. Is there any way to use Ctrl-d? ...

Is there a tool to search inside both unicode and ANSI text files from the command line?

I have tried to use findstr and even windows explorer but I can't get it to find text inside of unicode files. Any suggestions? ...

What's the easiest way to make a hotkey for windows?

For example , you push ctrl+v and insert the buffer content into the window. How can I create my own hotkeys like that? Sorry for noobish question. ...

Key handling routines

Is there anyway to modify the key handling routine that the Windows Login Screen uses to allow a barcode with the username, 2key tab character ($I), and a password to log in a user. I cannot get the login screen to recognize the TAB character to tab to the password text field. Any help would be great. Thanks! ...

During a subprocess call, catch critical windows errors in Python instead of letting the OS handle it by showing nasty error pop-ups

"The application failed to initialize properly ... Click on OK,to terminate the application." is the message from the error pop-up. What is the way to catch these errors in Python code? ...

Text printing in landscape via notepad

I'm trying to do some text-based printing on Windows. My program makes use of windows' "notepad /p file.txt" functionality that prints a text file on the default printer. The problem is that you cannot say that you want to print in landscape instead of portrait. In the same way, it's not possible to print to another printer. Some backg...

How many device drivers are available for Windows

I'm trying to estimate, for back-of-the-napkin calculation purposes, how many different device drivers are available for Windows. I'm trying to understand what it might take in terms of size of collected data and processing power what would be required to do some statistical analysis of drivers. Anybody have any references? Ideas? At...

How I start my winforms app via telnet?

I have a windows forms application on a client machine. I am trying to log in via telnet, shut it down, update some files, and restart it. Using cmd on the client machine and typing in MyApp.exe works great to start it. But if I do this in the telnet window something odd happens: The application starts in as far as it is now in the pr...

recursive file search

I'm trying to figure out how to work this thing out .. For some reason, it ends at a certain point.. I'm not very good at recursion and I'm sure the problem lies somewhere there.. Also, even if I checked for cFileName != "..", it still shows up at the end, not sure why but the "." doesn't show up anymore.. void find_files( wstring wr...

What SDK for Metering on Windows Mobile?

I am trying to write A Windows Mobile app that will include DRM metering but I have been unable to find IWMDRMDeviceApp::GenerateMeterChallenge or any equivalent within the Windows Mobile 6 SDK. The only possibility that I have come up with so far is Windows Media DRM 10 for Portable Devices Porting Kit but this has a substantial licensi...

Permissions delete windows files Batch

I would like a batch file which can delete C:\Windows files. But every time i try (:D) it keeps me away from it because of the permissions. Does anyone know how to remove C:\WINDOWS files? Thanks. ...

What could cause the error message 'Target "1" does not exist in the project "xxx".' running Ant on Windows?

I'm using ant.bat (in Ant 1.7.1) to build the all target in a build.xml file, on Windows 2003 Server. (I've substituted "xxx" in the error message for the project name in that file.) It builds successfully, but then ends with: 2009-06-10 17:26:03 | all: 2009-06-10 17:26:03 | 2009-06-10 17:26:03 | BUILD FAILED 2009-06-10 17:26:03 | Ta...

Creating a hook to a app?

Hi all, Here is what I need. I trying to write a application that will take over another application and intercept certain things that happens in it. The idea is to monitor the application and take actions when some stuff happens. After some research I found that Detours 2.1 from Ms Research, will help me, but I am having a hard time ...

how to open a file (ie. .txt file) in C++ (kinda like double clicking it in windows)?

I'm wondering how I can open a file literally in C++ (like double clicking it)? ...

How do I handle an event in C# based on a cell click in a DataGridView?

FYI, I looked at existing postings and I did not find exactly what I needed. I am using Visual Studio 2008 to write a C# Windows Forms program. I have a DataGridView object that displays data from a table. When a user clicks on a cell I want to be able to grab the contents of that cell. How do get an action to take place whenever the...

Redirecting passed arguments to a windows batch file

I would like to call a jar file from a windows batch file. One requirement is to be able to pass all the batch file arguments as-is to the jar file invocation. For example, Required Command line: foo.bat --flag1=x --flag2=y --flag3=z The batch file foo.bat should invoke foo.jar like follows: java -jar foo.jar --flag1=x --flag2=y --flag...

How to hide an external program's windows programmatically?

I want to hide an external application, ie. not the current application. I want to give the title of the application and it will be hidden. How can I do this programmatically? ...