explorer

Create context-menu entries for a given extension

蓝咒 提交于 2019-12-23 04:50:07
问题 It is possibe to create context menu entries for Window's File Explorer for all files by creating registry entries such as [HKEY_CLASSES_ROOT\*\shell\kdb-test] @="Test (*,kdb-test)" [HKEY_CLASSES_ROOT\*\shell\kdb-test\command] @="cmd.exe /c type %1 & pause" It is also possible to create them for a given extension by replacing \* \ by \.extension\ . However, I have found that the latter doesn't work reliably. For instance, [HKEY_CLASSES_ROOT\.regshelltest\shell\kdb-test] @="Test (.regshelltest

Execute PowerShell command on selected files in Explorer

青春壹個敷衍的年華 提交于 2019-12-22 14:07:12
问题 How to execute a rename command in PowerShell only on selected files in Explorer? I have the PS command but I don't know where to put it in the Windows registry to be accessible in the right-click context menu in Explorer. 回答1: HKCR:\*\shell contains what you need. Create a new key with the name of what you want to call it (eg "Rename With Date"), then a subkey called "Command" with a default value of your command. So for example, HKCR:\*\shell\Rename With Date\Command where the (Default)

How do I get the path to the currently selected file

本小妞迷上赌 提交于 2019-12-21 21:43:09
问题 Does VBScript have a function to get the path to the currently selected file in File Explorer? If so, what is the function? I'm looking for something like Set fileObj = CreateObject("Scripting.FileSystemObject") dim filepath filepath = fileObj.GetCurrentSelection() 'doesn´t exist dim result result = filepath 'communicate with LiveCode 回答1: I wrote a simple example. Keep in mind there may be more than one open windows explorer window and this will list them all. Function GetSelectedFiles()

Restarting explorer.exe only opens an explorer window

♀尐吖头ヾ 提交于 2019-12-21 06:50:22
问题 The Problem In one part of a batch file (kind of, see Extra Information) I need to restart Explorer, so I use the, tried-and-tested method of taskkill /f /im explorer.exe >nul explorer.exe Then this happens explorer.exe is successfully terminated explorer.exe is started (see Image 2), but only an Explorer window opens, which I am left with indefinitely (see Image 1) I can then only properly restart Explorer by starting a new task from Task Manager, as, I'm assuming, Win + R is part of

Monitor file selection in explorer (like clipboard monitoring) in C#

你说的曾经没有我的故事 提交于 2019-12-21 06:27:09
问题 I am trying to create a little helper application, one scenario is "file duplication finder". What I want to do is this: I start my C# .NET app, it gives me an empty list. Start the normal windows explorer, select a file in some folder The C# app tells me stuff about this file (e.g. duplicates) How can I monitor the currently selected file in the "normal" windows explorer instance. Do I have to start the instance using .NET to have a handle of the process. Do I need a handle, or is there some

Where does windows explorer store file meta data?

大憨熊 提交于 2019-12-21 03:52:22
问题 In Windows 7 I can add meta data to files for example title, rating and so on. Where is this meta data stored exactly? For NTFS they may use alternate data streams but I this meta data also happen to work in FAT32, so how ho they do it? Is there an API to make use of this feature? 回答1: Starting with Windows Vista, metadata is now stored inside the file itself. 回答2: Windows stores this in COM Structured storage. The implementation is either in the file itself (Office docs support this, or any

Can't delete a folder on Windows 7 with a trailing space [closed]

微笑、不失礼 提交于 2019-12-20 08:49:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Issue: I have a Windows 7 sub-directory which I can't delete. While I know others here, and many more elsewhere on the Internet have asked about this general class of Windows 7 file system problem, my question here specifically relates to the specific class of un-deletable files on Windows 7 which have a

How to add item to windows explorer content menu in delphi?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 12:38:51
问题 I would like to create menu item in windows explorer content menu (for all file types) which after click will open my application and pass the selected file name to it. Is there any tutorial for this ? I know there is ShellPlus component available but it's a bit outdated. 回答1: Registry This method is easy since it comes down to adding some registry keys. The downside is that you can't put any logic in it. You can read about it here and here a simple example in Delphi. You get a bit more

How to add item to windows explorer content menu in delphi?

非 Y 不嫁゛ 提交于 2019-12-18 12:38:07
问题 I would like to create menu item in windows explorer content menu (for all file types) which after click will open my application and pass the selected file name to it. Is there any tutorial for this ? I know there is ShellPlus component available but it's a bit outdated. 回答1: Registry This method is easy since it comes down to adding some registry keys. The downside is that you can't put any logic in it. You can read about it here and here a simple example in Delphi. You get a bit more

How to add a menu item (in right click menu) to explorer for all files (*.*)?

醉酒当歌 提交于 2019-12-18 09:25:53
问题 When Winrar installed, and user right click on a file, a new mune item exists: "Add to Archive..." How can do like this for my application? 回答1: This can be done by adding a shortcut (context) menu handler. A static handler by setting it up in registry Or, a fully featured dynamic handler, which is a COM object implementing necessary interfaces to advertise verbs and handle their invocations See also: Choosing a Static or Dynamic Shortcut Menu Method The Complete Idiot's Guide to Writing