Questions tagged [shell-verbs]

13 questions
11
votes
2 answers

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

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…
Chicago
  • 1,619
  • 4
  • 19
  • 32
9
votes
4 answers

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

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…
kxr
  • 4,841
  • 1
  • 49
  • 32
6
votes
2 answers

What's the difference between "print" and "printo" verbs when starting a process?

I suspect this may apply to multiple programming languages, but in this context I am referring to .NET. When I use System.Diagnostics.Process.Start, I can include, as an argument, a System.Diagnostics.ProcessStartInfo object. One of the properties…
Sonny Boy
  • 7,848
  • 18
  • 76
  • 104
2
votes
1 answer

ShellExecute print verb fails to print from 32 bit app on 64 bit windows

I have a 32 bit program that has been installed by a customer on 64 bit windows. There appears to be a problem with using ShellExecute and the print verb in that configuration. First my test program. // printme.cpp : Defines the entry point for the…
Anthony Wieser
  • 4,351
  • 1
  • 23
  • 25
2
votes
1 answer

On Windows 10, how to send programmatically from C# a set of files to the CD/DVD recorder using the shell execution verb "SendTo"

I do have this very specific question regarding the usage of the ShellExecute verbs from inside a C# application, which uses the ProcessStartInfo class from the System.Diagnostics namespace. What I do have: a set of files (text and binary), which…
Ramanagom
  • 329
  • 2
  • 8
2
votes
2 answers

How to invoke a verb on multiple files

Using PowerShell I would like to invoke the print verb on multiple files. In Windows Explorer I can go into a folder, select a number of files, right-click and choose the print options. This opens up the Print Pictures dialog with all the selected…
daibatzu
  • 507
  • 4
  • 16
2
votes
2 answers

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

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…
Bz01
  • 21
  • 1
  • 2
2
votes
1 answer

What shell verb used in double click action?

I'm trying to programmatically open .jpg file in Windows Server 2008 R2. var fileName = @"C:\Users\Admin\Desktop\TEST.JPG"; Process.Start(fileName); But this code causes an error, because Photo Gallery Viewer component is not installed in the…
Gepard_vvk
  • 79
  • 4
1
vote
3 answers

Best PowerShell verb for Logging something?

In a PowerShell script I have a function like Log-Statistics() which just outputs some stuff to stdout. But it might as well output stuff to a specific log file. However, Log- is not an approved PS verb. Any recommends ? I'm…
orion elenzil
  • 4,484
  • 3
  • 37
  • 49
0
votes
0 answers

Where are windows Verb integer references defined?

I have found a number of sites (like this) that use code like this $verbs = @{ "PintoStartMenu"=5381 "UnpinfromStartMenu"=5382 "PintoTaskbar"=5386 "UnpinfromTaskbar"=5387 } to allow for working with verbs language agnostically.…
Gordon
  • 6,257
  • 6
  • 36
  • 89
0
votes
1 answer

Are the verb strings the ProcessStartInfo.Verbs propery returns for Standard Canonical Verbs different based on culture?

Here Creating Shortcut Menu Handlers it says: Canonical Verbs Applications are generally responsible for providing localized display strings for the verbs they define. However, to provide a degree of language independence, the system defines a…
Wes
  • 486
  • 3
  • 15
0
votes
1 answer

Register/Unregister COM dll verbs are not working in vista

I am trying to use the registry settings from this page to add two menu-items to the explorer context menu in vista to register and unregister COM DLLs. But for some reason they do not work. I have checked the registry using Regedit and the keys do…
Sandeep Datta
  • 28,607
  • 15
  • 70
  • 90
-1
votes
1 answer

How do I capture command line parameters for paths with spaces and trailing backslashes?

I have created a custom command entry in the registry to add an item to the Windows Explorer context menu when the user right-clicks on a folder. Here is exactly what the value looks like in the registry: "C:\Program Files\Directory…