windows-explorer

Configure Windows Explorer Folder Options through Powershell

浪尽此生 提交于 2019-11-27 00:20:41
问题 I'm looking for a way to configure a few options in Folder Option dialog of Windows Explorer through Powershell. The options are: Choose "Show hidden files, folders, and drives" Uncheck "Hide extensions for known file types" Uncheck "Hide protected operating system files (Recommended)" 回答1: Keith's answer didn't work for me out of the box. The only thing that took to the registry value modification was ShowSuperHidden. Both the Hidden (Show hidden files...) and HideFileExt (hide file

How can I open Windows Explorer to a certain directory from within a WPF app?

浪子不回头ぞ 提交于 2019-11-26 22:35:08
问题 In a WPF application, when a user clicks on a button I want to open the Windows explorer to a certain directory, how do I do that? I would expect something like this: Windows.OpenExplorer("c:\test"); 回答1: Why not Process.Start(@"c:\test"); ? 回答2: This should work: Process.Start(@"<directory goes here>") Or if you'd like a method to run programs/open files and/or folders: private void StartProcess(string path) { ProcessStartInfo StartInformation = new ProcessStartInfo(); StartInformation

ShellIconOverlayIdentifiers - why so few?

左心房为你撑大大i 提交于 2019-11-26 22:32:19
问题 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 the system image list. There are currently fifteen slots allotted for icon overlays, some of which are reserved by the system. For this reason, icon overlay handlers should be implemented only if there are no satisfactory alternatives I can

Can't see a file in Windows written by an Android app on SD card unless I “Force Close” the app

ぐ巨炮叔叔 提交于 2019-11-26 19:46:58
问题 I wrote a file through my Android program like this: String file = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Files/hello.txt"; BufferedWriter writer = new BufferedWriter(new FileWriter(file)); writer.write(str + "\n"); \\ Yeah, 'str' has a value there writer.close(); The program does its job and it finishes. Now I hit the back button on Android to close the application. If I then go to an Android file browser (like Astro) I can see the file, but if I mount the SD card on

How can a batch file run a program and set the position and size of the window?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 18:46:07
I have batch file that sets up the desktop environment for me when I am writing code. The file is named: SetEnv.cmd and it opens 3 other windows: An instance of Windows Explorer that is set to the app server's deploy directory. A second instance of Windows Explorer that is set to the directory where my deployment file is written. A console window to start my application server. Here are the contents of SetEnv.cmd : Explorer /n,c:\develop\jboss-4.2.3.GA\server\default\deploy Explorer /n,c:\develop\Project\Mapping\deploy cmd /c SetupEnvCmd.cmd And here are the contents of SetupEnvCmd.cmd : cd C:

Cross-application drag-and-drop in Delphi

一曲冷凌霜 提交于 2019-11-26 18:20:56
问题 I would like to create a Delphi application for Windows XP which allows dropping of files dragged from Windows Explorer (the Desktop or folder windows) or other applications which support this operation (such as Total Commander). What about vice-versa? When the user drags an icon from my application, I should be able to set the contents of the dragged object to custom data. My goal is to create a custom application toolbar, onto which I can drop applications and show their icons or drag

How to programmatically restart windows explorer process

给你一囗甜甜゛ 提交于 2019-11-26 17:05:36
问题 I'm working on a windows shell extension, and unfortunately, when making changes to the DLL, I must restart windows explorer (since it keeps the DLL in memory). I found this program from Dino Esposito, but it doesn't work for me. void SHShellRestart(void) { HWND hwnd; hwnd = FindWindow("Progman", NULL ); PostMessage(hwnd, WM_QUIT, 0, 0 ); ShellExecute(NULL, NULL, "explorer.exe", NULL, NULL, SW_SHOW ); return; } Does any one have something they can share to do this? P.S. I realize that I can

How can I programmatically refresh Windows Explorer?

和自甴很熟 提交于 2019-11-26 15:42:08
问题 I have a Windows shell extension that uses IShellIconOverlayIdentifier interface to display overlay icons on files and folders. My extension is a little like TortoiseCVS or TortoiseSVN. Sometimes I need to make Windows Explorer redraw all it's icons. To do this, I call SHChangeNotify like this: SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL) This refreshes the desktop and right hand pane of any open explorer windows. It doesn't refresh the folder tree on the left hand side of any

C#: How to open Windows Explorer windows with a number of files selected

◇◆丶佛笑我妖孽 提交于 2019-11-26 15:26:28
问题 In the Library of Windows Media Player you can select one or more music files. You can then right-click and in their context menu choose Open File Location . This will open up one windows explorer window for each directory that the files are in, and the files will be selected for you. So let's say we have a bunch of mp3 files in our library where three of them are these: Z:\Music\Thursday Blues\01. I wish it was friday.mp3 Z:\Music\Counting Sheep\01. Sheep #1.mp3 Z:\Music\Counting Sheep\02.

Get selected items of folder with WinAPI

余生颓废 提交于 2019-11-26 14:09:44
问题 Hey guys I try to get the selected files of a folder which the user is using. I have the following code which is already running, but only on desktop files: private string selectedFiles() { // get the handle of the desktop listview IntPtr vHandle = WinApiWrapper.FindWindow("Progman", "Program Manager"); vHandle = WinApiWrapper.FindWindowEx(vHandle, IntPtr.Zero, "SHELLDLL_DefView", null); vHandle = WinApiWrapper.FindWindowEx(vHandle, IntPtr.Zero, "SysListView32", "FolderView"); //IntPtr