shell-verbs

WinApi ShellExecuteEx - using verb 'copy' on a file list

假装没事ソ 提交于 2019-12-11 02:23:48
问题 is it possible to use ShellExecuteEx to copy or cut a group of files in a given directory ? The Windows function works fine on a single file but I can't find anywhere any tips over the subject (with a file list). I don't expect any alternative method ( such as xcopy) because I need the windows shell function undo/redo after performing shell-item-specific actions. It's not documented at all in the microsoft msdn library. I've tried to fill the 'lpfile' parameter with a list of items such as

Windows: start a file using a (non-default) shell verb like “edit” from .bat or command-line

社会主义新天地 提交于 2019-12-05 00:23:13
问题 How can I start a file with an associated non-default command (shell verb) like "edit", "print", ... from command-line or from a .bat script by using standard Windows means . (Those extra actions which you get offered on top upon right-click on a file in the Windows Explorer.) Thus getting the effect of python -c "import os;os.startfile('somepic.png', 'edit')" (ShellExecuteEx), but without using extra tools like python, powershell, or so. The START command does not seem to offer that. 回答1: As

Windows: start a file using a (non-default) shell verb like “edit” from .bat or command-line

倖福魔咒の 提交于 2019-12-03 16:40:09
How can I start a file with an associated non-default command (shell verb) like "edit", "print", ... from command-line or from a .bat script by using standard Windows means . (Those extra actions which you get offered on top upon right-click on a file in the Windows Explorer.) Thus getting the effect of python -c "import os;os.startfile('somepic.png', 'edit')" (ShellExecuteEx), but without using extra tools like python, powershell, or so. The START command does not seem to offer that. As learned from the comments and after further searching: there seems to be no direct command for that task in

How to pass in multiple file/folder paths via a right-click event (verb) to an executable?

可紊 提交于 2019-11-27 04:53:35
Related: How to add new items to right-click event on Folders and Files in Windows? I added custom right-click verb to all files by adding registry keys to HKEY_CLASSES_ROOT\*. End result looks like this HKEY_CLASSES_ROOT*\Shell\TestRightClick\Command -------Default = c:\RightClickTest.exe "%1" Problem: when selecting multiple files c:\RightClickTest.exe will be called several times(number of selected files) What I need: pass-in multiple files paths to one executable As I stated in the previous question, you're going to have to be intelligent about this inside your application. One instance of

How to pass in multiple file/folder paths via a right-click event (verb) to an executable?

别说谁变了你拦得住时间么 提交于 2019-11-26 11:23:42
问题 Related: How to add new items to right-click event on Folders and Files in Windows? I added custom right-click verb to all files by adding registry keys to HKEY_CLASSES_ROOT\\*. End result looks like this HKEY_CLASSES_ROOT*\\Shell\\TestRightClick\\Command -------Default = c:\\RightClickTest.exe \"%1\" Problem: when selecting multiple files c:\\RightClickTest.exe will be called several times(number of selected files) What I need: pass-in multiple files paths to one executable 回答1: As I stated