windows-shell

How can I embed a CR+LF in a command issued at the Windows command prompt?

How can I embed a CR + LF in a command I'm using at the Windows command prompt without actually issuing the command? Example: C:\Windows\system32>myprog -u user -p pass -text "Sincerely,\nRob" Is it up to myprog to do handle the line break? I figured there must be some way to represent a line break that the Windows command line would...

API to toggle "Show hidden files, folders and drives"

Is there a function in Windows API to toggle the "Show hidden files, folders and drives" option in Windows Explorer (Tools >> Folder Options... >> View tab). I know of a related registry key, but changing that would not have immediate effect. The key is: HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Advanced/Hidd...

SHAddToRecentDocs without a file?

I was toying with an IRC client, integrating it with the windows 7 app bar. To get a "Frequent" or "Recent" items list one has to call SHAddToRecentDocs API. I want to add recent IRC channels visited to the Windows 7 Jumplist for the IRC application. Now, my problem is, IRC channels don't exist in the file system. And SHAddToRecentDocs ...

opening a URL in new tab

Is there a way to open a URL in a new tab (in IE) from a cpp application without using DDE or shell execute ?? ...

How to gather information on windows shell programming?

Hi, I am very interested in learning windows shell programming. So...I searched for books on the amazon.com. I see that books on the amazon.com are out of date. Most of books are published before 2005. I googled about it and found many tips and tricks, but not step by step guide. Where do I get started? P.S: I am talking about windows...

Most useful Explorer shell extensions

I'd like to know which are the most common (and useful) shell extensions you're using as developers. I bet the following are on the list, but I'd like to know which others you would add: Tortoise SVN Tortoise Hg Tortoise XXX (Git, CVS, whatever) Any others worth mentioning? ...

Java access Shellfolder

Hello Guys I am trying to access an Shellfolder like: "Shell:::{35786D3C-B075-49b9-88DD-029876E11C01}" via Java on a Windows PC ... but I havn't found a way to do so up to now. Is this generally possible with Java? Recently I uncovered the sun.awt class "ShellFolder"... Does this class provide the abilitiy to access such an folder? t...

Context Menu Shell Extension not working under Windows 7 64-bit

I created very simple Context Menu using Shell Extension in C#. It works fine under Windows XP 32 bit but under Windows 7 64 bits menu items not appearing. I tried to build Setup output to x64 but no effect. Simple Source contains ContextMenu and Setup project is under http://bit.ly/9nGd41 Looks like Wow6432 should be handled by Setup...

Check if a php script is still running

I have a script that listens to a jabber server and responds accordingly. Though it's not supposed to stop, last night it did. Now I want to run a cron job every minute to check if the script is running, and start it if not. The question is, how do I check if a particular script is still running? Some solutions have been posted here, b...

Why doesn't interface inheritance work when writing shell extensions in c#?

According to this article about writing shell extensions in .Net, inheriting the shell interfaces as you might naturally do when writing code doesn't work. I've observed this in my own code as well. Doesn't work: public interface IPersist { // stuff specific only to IPersist } public interface IPersistFolder : IPersist { // st...

Windows7 explorer context strip hook?

Hy everybody, I'm wondering if it's possible to add a new button via C++ or C# to windows 7 explorer "context strip"(don't know if this is correct name) - like on picture below. My reason for this is because a lot of times I'm switching on&off "Show hidden files, folders and drives" functionality under Tools->Folder option->View. There...

Can I add a thumbnail to my custom file extension that Windows will render?

I have a c# .Net 3.5 application that creates xaml files with drawings in them. I'd like to insert a thumbnail into the file so that the user gets some indication of the file contents in Windows Explorer. Any ideas what approach to take? Regards David ...

Thumbnail Provider not working

I'm trying to write a Windows Explorer thumbnail handler for our custom file type. I've got this working fine for the preview pane, but am having trouble getting it to work for the thumbnails. Windows doesn't even seem to be trying to call the DllGetClassObject entry point. Before I continue, note that I'm using Windows 7 and unmanage...

is the code given in description is executable in Windows system?

is the code given is executable in Windows system? as it seems to be Linux commands echo 'create database foo2' | mysql -uroot mysqldump --skip-triggers -uroot foo | mysql -uroot foo2 EDITED I am executing the following code but I am not getting what I expect.. <?php mysql_connect('localhost','root','********'); echo 'c...

Wireless Connection doesn't work without Windows Shell

We run a dedicated application on Windows XP and disable the shell to prevent users from accessing the Windows features. When we switched to wireless network, the card doesn't work until we start the shell. Is there a way to make it work without the shell? ...

How to delete ProgIDs from other user accounts when uninstalling from Windows?

I've been investigating "how should a modern windows c++ application register its file types" with Windows (see http://stackoverflow.com/questions/2828637/c-how-do-i-correctly-register-and-unregister-file-type-associations-for-our-ap). And having combed through the various MSDN articles on the subject, the summary appears to be as follo...

What should be done in place of ddeexec for MDI apps?

We have been using ddeexec registry entries to handle opening a design from Explorer. MSDN (about 2/3 way into article) indicates that ddeexec is deprecated, and applications should use IDropTarget instead. What is unclear to me is how that this actually is supposed to work.. e.g. If I have Foo.exe, which is intended to handle .foo fi...

How to set Menu Help Text in Window Custom ShellExtension popup menu Item

I need to set the menu help text of my shell context menu popup menu item just like winzip shellContext menu. I tried IContextMenu_GetCommandString but it is only setting menu help for sub menus of my main popup menu. Please help me and let me know how to set the menu help for my main poup menu? Thanks ...

How to Get Control Panel Categories (Groups) on Windows Vista and Windows 7

Is there a way to get a listing of control panel categories on Windows Vista and Windows 7 using the shell? Is there a way to determine which category an applet is assigned to using conical Names using the shell? such as Microsoft.Mouse is in which category? I have some code that works nicely to display control panel applet names obta...

Sorting shell items like windows explorer

Hi, I am making a bread crumb bar in Delphi and having some problems regarding sorting the dropdown of the bread crumbs. Strangely enough, even Vista is not consequent when showing these items. I have tried many ways to figure out what is system folders, what is zip files and what is normal folders. It seems like an easy task but so f...