windows

How do you delete N files of X type from Y subfolders from a Windows batch file?

I'm trying to write a windows batch file that can delete files from subdirectories. I would rather not hard code the directory structure in, so I can use this process with other projects. I need to delete files of X type I have the parent folder C:\MyProject There are Y subfolders C:\MyProject\? There are N files to delete Is there...

Search using Windows for files ending in jsp

I'm trying to search using the windows search one of my web directories for any uses of scriptlets. However, the search seems to be ignoring all files ending in .jsp. I searched for plain words, and that didn't work either. Is there a reason Windows ignores these files when searching? ...

What is the best way to send an email from a batch file?

I have a nightly batch job that can tell if it has failed. I want it to send me an email, possibly with an attachment when it does. How can I send an email from a Windows Batch (.bat) file? ...

Windows build for PyLucene+JCC on python 2.6

Where can I download a PyLucene+JCC Windows build compiled for python 2.6? Jose ...

64-bit Qt and Postgres plugin in Windows

I have a 32-bit Windows/Qt application using Postgres plugin. Recently, I've been intrigued to turn the app into a 64-bit app. So I checked the Qt docs for instructions, built Qt and its libraries into 64-bit successfully. Now the problem is Postgres does not provide libraries for 64-bit Windows! Obviously, the Qt Postgres plugin won't c...

Is there a compiler or IDE for C on Windows that's regarded as an industry standard?

Taking advice from this post, I purchased a copy of 'The C Programming Language' and am happily reading my way through. However, all the stuff I've written in the past has been interpreted, and I have no idea where to look for a good C compiler or an IDE (is there even one?). Google searches throw up a lot of results for C++ compilers, w...

win32 gui, pixel access with opengl? w/o killing performance?

I want to make a editor and need normal win32 buttons such as textbox, buttons, etc. I also need a control for pixel access. I really dont like GDI so i am thinking i should do it with opengl. I havent done it before and i want to know if this is a bad idea before i write any code. This is what i am thinking to do this. Create a normal ...

How to run arbitrary code when windows resumes from hibernate?

Hi All, I need to run some code when my computer resumes from hibernate (even before I logon). The laptop I am using has a bizzare problem. If I have an external monitor connected to it while resuming from hibernate the laptop chooses the external display as the main video device and the laptop screen remains blank. This becomes more fr...

Is there a tutorial on C++ programming in Visual Studio 2008?

Can anyone link me to a decent c++ tutorial that's actually currently in date? Almost everything I find applies to 2005 and the code examples are riddled with errors which won't run in my 2008 version of the visual compiler. ...

Is SQL Server/Windows integrated security good for anything?

The distinctions among Windows user permissions and any set of SQL Server GRANTs seem like unrelated concepts. As often as not, it seems to actually be implemented with pseudo-logins for database roles; but that doesn't map usefully back to Windows permissions. Assuming single-login identity verification, why not just go with the simples...

Can you install an ActiveX control in IE without having administrator privileges?

I'm working on a web app that needs an ActiveX control to function. It installs just fine when the user has admin privileges, but fails to load otherwise. Is this by design and if so, is this documented somewhere? (preferably MSDN) ...

How could I add an entry to the right click menu ?

I'm not really sure how to google this one . I would like to know how would I add an entry to the right click menu in a Windows system . Something like "Open with ..." or "Archive with ... " . I would preffer a solution that works under Windows XP . ...

Can I get the file info which changes in a specified directory using FindFirstChangeNotification and FindNextChangeNofication instead of ReadDirectoryChangesW?

I want to monitor upon a specified directory and if there's any file or subdirectory changes, I can be notified. I realize the function with the following simple code segment: UINT myThreadFunc(LPVOID pParam) { int changeCount = 0; while(true) { HANDLE changeHandle = FindFirstChangeNotification(L"C:\\", TRUE, FILE_NOTIFY_CHANGE_...

::FindWindow fails from Service application

Windows API ::FindWindow function fails when called from Service application. GetLastError() also returns 0 (success?). Is this some privilege\access right problem? Do you think it's design problem and I should use another IPC method? ...

Making CreateProcess inherit the console of the calling process

When I call CreateProcess in Windows, the new process doesn't seem to inherit the console of the calling process. I made a test program that runs "ruby xtest", xtest being a script that writes "hello" to standard output. I ran this test program from Emacs, and get no output. I also tried the following code calling GetStdHandle, but ag...

What is the best WebDAV client for Windows?

The support of locking will be preferred. ...

Toolbar on windows xp and vista taskbar

I have made a toolbar that I want to enable from a systray application written in C#, the actual toolbar enabling is done from a C++ part using [DLLImport]. Current I use: SHLoadInProc(__uuidof(MyBandLoader)) but this fails on vista (SHLoadInProc is not implemented any more), and on Windows XP SP2 with IE6 (the quick launch toolbar v...

C# Sending Keyboard Input

How can I send keyboard input messages to either the currently selected window or the previously selected window? I have a program which I use to type some characters which are not present on my keyboard and I would like it if I could just send the input directly rather than me having to copy and paste all the time. EDIT: The applica...

powershell exchange : how do you setup a scheduled task to run exchange2007 powershell? (solved)

I'm having trouble setting up a scheduled task (now called Task Scheduler) under the actions tab to run on windows 2007 server. It also has exchange server 2007. I've tried setting Program/script : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Add arguments (optional): -psconsolefile exshell.psc1 -command "& {c:\mes-detai...

Any good tool or library for recursive convert ANY files to tiff / images?

We have to convert EVERYTHING to images for archiving purpose. DOC, HTML, email, ZIP, PDF, TXT and any document you can read/view on computer. In addition, it must recursive convent on all embed attachment and files in zip. I know ImgMaker only. Is it the best or I can have something better? My boss ask me to search that are there any ...