windows-explorer

How does Windows decide which icon format to display when showing an exe's icon in Windows Explorer?

How does Windows decide which icon format to display when showing an exe's icon in Windows Explorer? Problem: When we look at our icon file and exe with embedded icon file in various Windows Explorer file views, the icon file is displayed in a higher quality mode than the icon displayed for our executable even though the icon in our exe...

API for file sort criterion of explorer

There are many file sort criterion for explorer, such as: Name, Date, Type, Size, Tags, Rating, etc. Which API can retrieve the current sort criterion and sort mode (from smaller to larger or larger to smaller). THX:) ...

ListView as windows explorer

Hi, do you know any good example how to create listView which will look and has the same methods as windows explorer. copying, pasting, display thumbnails ?? I must use listView because I can't allow user to change directory, and I can't disable this option in windows explorer(I mean the place where can I click to go up or down or put ...

Adding a "fake drive" to Windows Explorer

An application I use, Mozy Backup, adds its own "drive" to Windows Explorer that I can browse and view all the files I've backed up. Windows knows it's not a physical drive - it's shows up under "Other" if my drive list is divided by type. How is a "drive" like this registered with explorer? I'd like to do this with a current .NET appli...

Windows Explorer argument not being interpreted?

I'm currently using: Process.Start("explorer.exe", "/Select, " + fullPath); //with file name.extension That basically tells windows explorer to open the folder where the file is in, with the given file selected. But, by the forces of evil, sometimes it works and sometimes it just opens the file ("/select" is... ignored) Has anyone e...

Visually ageing folders (change folder icon in Explorer based on last modified time)

This sounds like a really good idea: Ageing Icons with Freshness App Unfortunately the "demo" is Mac only. How would you go about replicating this on Windows? One approach I can think off is to modify the desktop.ini file within each folder. This would require a service that periodically scans some folders and updates the desktop.ini ...

Refresh Windows Explorer in Win7

My program sets "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" value "Hidden". Hovewer I'm not able to refresh the explorer to take into account this change. I've tried: 1) SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, IntPtr.Zero, IntPtr.Zero);` 2) SHELLSTATE state = new SHELLSTATE(); state.fSh...

.NET: How Do I Create File Icon Overlays

I'm trying to add different icon overlays over the icons of various files (note: not all the files of a certain type, just certain files). If you don't get what I mean, I'm referring to what programs like TortoiseSVN, TortoiseHG, Dropbox, etc. do. Can this be done in .NET? If so, how? I'm hoping there's a library out there for this. I f...

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...

Refresh windows explorer in order toolbar to disappear

I created a windows explorer toolbar in C#. This toolbar is removed when uninstalling my applicaiton but it's still shown after unregistering (cached in explorer.exe). explorer.exe needs a restart in order toolbar to dissapear. How can I fix this by C# code? ...

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...

Adobe AIR - Options to open folder in Windows Explorer

Hello StackOverflow community, Is there any way to open a folder in Windows Explorer from Adobe AIR? It looks like these APIs won't be added until AIR 2.0, but until then are there any workarounds that can be used to enable this feature? Thanks, Mauricio ...

How to get the user account associated to the webdav request?

When accessing a webdav using Windows Explorer (Not IE), the call is redirected thru the svchost.exe process (with webclnt.dll). When i check get the pid of the process that is connected to the local port, i get the pid of the svchost.exe process. How can i get the user account that the call was associated to? ...

Custom PreviewPane - Works in Windows7, not in Vista

Hi. I've written an explorer extension to display my custom file format in the Preview Pane. This works fine in Windows 7, but doesn't seem to work in Vista. The same DLL handles both thumbnails and the preview pane. The thumbnails side of things work in both Vista and Windows7. Adding logs to my code, Vistas only calling my DllGetC...

Implement "Open Containing Folder" and highlight file

This can be a handy functionality to have in a program that works with files/folders. It's easy enough to actually open the containing folder using: System.Diagnostics.Process.Start( *path to folder* ); ...but how do I go about actually selecting the target file within that parent folder? If I use the Process.Start method it actually ...

Why does Windows Explorer search freeze when I have an unrelated program paused in a debugger

While debugging my program, whether it's an ASP.NET application or a .NET console EXE and I have the debugger paused at a breakpoint I try to find a file in Windows Explorer. Either pressing WinKey+F or selecting search from the context menu freezes Windows Explorer - until I resume the program being debugged. My program has nothing to ...

"Build" item in Windows Explorer's context menu of a VS solution file?

I wonder why this is not integrated by default. I'd like to have an item in Windows Explorer's file context menu of a VS solution file to build it. Is there a tool for this? Or do I have to create this myself? ...

Outlook addin crashing windows explorer

Hi, i am building an outlook addin that utilizes the windows clipboard for temporary storage. When i make a call to Clipboard.Clear() at the end of the process, Windows Explorer crashes and needs to restart. Does anyone know why this may be? It ONLY happens on a 64bit OS, not 32bit.. ...

Drag and Drop to explorer causing invalid FORMATETC (DV_E_FORMATETC) error

I'm trying to use this excellent example to implement dropping virtual files into Windows Explorer. However, I'm stymied by this error. Towards the bottom, inside void System.Runtime.InteropServices.ComTypes.IDataObject.GetData(ref System.Runtime.InteropServices.ComTypes.FORMATETC formatetc, out System.Runtime.InteropServices.ComTypes.ST...

How to create a "Shell IDList Array" to support drag-and-drop of virtual files from C# to Windows Explorer?

I started trying to implement drag-and-drop of virtual files (from a C# 4/WPF app) with this codeproject tutorial. After spending some time trying to figure out a DV_E_FORMATETC error, I figured out I need to support the "Shell IDList Array" data format. But there seems to be next to zero documentation on what this format actually does. ...