Questions tagged [windows-shell]

The Windows Shell is the main graphical user interface in Windows hosted by Windows Explorer. It also implements a shell namespace that enables computer programs running on Windows to access the computer's resources via the hierarchy of shell objects.

The Windows Shell is the main graphical user interface in Windows hosted by Windows Explorer. Important features of Windows Shell include the Desktop, Taskbar, Start Menu, et cetera. Extending functionality of Windows Shell is possible using shell extensions.

In the shell namespace hierarchy "Desktop" is the top object; below it there are a number of files and folders stored on the disk, as well as a number of special folders whose contents are either virtual or dynamically created like the Recycle Bin, Libraries, Control Panel, This PC and Network.

Read more regarding the Windows Shell here:

https://en.wikipedia.org/wiki/Windows_shell

751 questions
88
votes
5 answers

C# get thumbnail from file via windows api

Windows explorer has the ability to show thumbnails of files. These thumbnails are provided by core and third-party shell extensions. I know how to extend the shell to provide thumbnails to Windows. What I want to do is retrieve the thumbnail image…
Brian Gillespie
  • 3,213
  • 5
  • 27
  • 37
84
votes
4 answers

ShellIconOverlayIdentifiers - why so few?

At this point, everyone knows that there's a limit to the number of ShellIconOverlayIdentifiers (from MSDN): The number of different icon overlay handlers that the system can support is limited by the amount of space available for icon overlays in…
rbellamy
  • 5,683
  • 6
  • 38
  • 48
56
votes
5 answers

ShellExecute equivalent in .NET

I'm looking for the .NET-preferred way of performing the same type of thing that ShellExecute does in Win32 (opening, printing, etc. for arbitrary file types). I've been programming Windows for over 20 years, but I'm a complete newbie at .NET, so…
Martin Kenny
  • 2,468
  • 1
  • 19
  • 16
52
votes
6 answers

How do I write a batch file which opens the GitBash shell and runs a command in the shell?

I'm on Windows 7 trying to use a batch file to open the GitBash shell and make a git call. This is the contents of my batch file: REM Open GitBash C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i" REM retrieve…
mariachimike
  • 1,303
  • 2
  • 17
  • 22
43
votes
3 answers

Getting output from a shell/dos app into a Delphi app

I have a commandline application coded in delphi that I need to call from a normal desktop application (also coded in delphi). In short, I want to call the commandline app and display the text it outputs "live" in a listbox. It's been ages since I…
Jon Lennart Aasenden
  • 3,920
  • 2
  • 29
  • 44
42
votes
3 answers

Windows shell extension with C#

I was wanting to write a simple windows shell extension to add to the context menu, and C# is the language I most use these days. Is it a decent choice for a shell extension? Are the interfaces easy to get to with it? Is there additional overhead…
Pete McKinney
  • 1,211
  • 1
  • 11
  • 21
35
votes
5 answers

How do I display a file's Properties dialog from C#?

How to open an file's Properties dialog by a button private void button_Click(object sender, EventArgs e) { string path = @"C:\Users\test\Documents\tes.text"; // how to open this propertie } Like windows right click on a file and you can…
User6996
  • 2,953
  • 11
  • 44
  • 66
32
votes
3 answers

What command makes a new file in terminal?

If mkdir creates a new directory, what creates a new file? for example "something.text". I tried couple of commands mkdir (FileName) -- works fine. But I didn't know how to create a new file inside a directory. I know that I can always go to my…
Moe
  • 365
  • 1
  • 3
  • 7
31
votes
2 answers

How do I keep SSH connection alive on Windows 10?

I've added the OpenSSH client (Beta) feature on Windows 10 so I can call it by running ssh on the command line. However the terminal windows (and thus the connection) freezes when inactive for too long. I know I would solve this on Linux by editing…
SlowerPhoton
  • 888
  • 1
  • 7
  • 17
27
votes
1 answer

IContextMenu::QueryContextMenu return not relevant menu

Network connection shortcut (Ethernet, Wi-Fi, etc.) have different context menus depending on the connection state (connected/disconnected). I use the following code (Delphi) to retrieve and display this menu. var pidl, child: PItemIdList; …
Asaq
  • 521
  • 5
  • 13
24
votes
8 answers

Programmatically select multiple files in windows explorer

I can display and select a single file in windows explorer like this: explorer.exe /select, "c:\path\to\file.txt" However, I can't work out how to select more than one file. None of the permutations of select I've tried work. Note: I looked at…
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
24
votes
8 answers

How to create a right-click context shell shortcut "edit with Emacs"?

Notepad++ automatically adds a shell shortcut so that when you're in Windows Explorer, you can right-click on a file and select "edit with Notepad++". How can I do the same with emacs? I am using GNU Emacs 22.3 for Windows.
namin
  • 37,139
  • 8
  • 58
  • 74
24
votes
5 answers

Windows 10 equivalent of LaunchAdvancedAssociationUI

Since Windows 10, the IApplicationAssociationRegistrationUI::LaunchAdvancedAssociationUI method does not work anymore. On Windows Vista, 7 and 8, it opens the Control Panel on the Set Program Associations page for specified application. On Windows…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
24
votes
3 answers

How To Execute Windows Shell Commands (Cmd.exe) with Node JS

I would like to C:\>ACommandThatGetsData > save.txt But instead of parsing and saving the data in the console, I would like to do the above command with Node.JS How to execute a shell command with Node.JS?
FredTheWebGuy
  • 2,546
  • 3
  • 27
  • 34
18
votes
1 answer

How to write a shell extension in C++?

This seemed like a common question but after doing some searching, I wasn't really able to find my answers. There is an article on this here: http://www.codeproject.com/KB/shell/shellextguide1.aspx But it's for a very old version of Visual Studio.…
void.pointer
  • 24,859
  • 31
  • 132
  • 243
1
2 3
50 51