You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -550,6 +550,28 @@ For example, the following launche `notepad.exe` and open the `License.txt` docu
550
550
551
551
552
552
553
+
#### verb attribute: ####
554
+
555
+
The `verb` attribute defines special directives on how to execute a file or launching the application. For example, the verb `open` or `edit` allows the user to open a document using the associated application. The attribute is optional.
556
+
557
+
Verbs are specific to a file type but some are supported by multiple types. Commonly available verbs include:
| edit | Launches an editor and opens the document for editing. |
561
+
| find | Initiates a search starting from the executed directory. |
562
+
| open | Launches an application. If this file is not an executable file, its associated application is launched. |
563
+
| print | Prints the document file. |
564
+
| properties | Displays the object's properties. |
565
+
| runas | Launches an application as Administrator. User Account Control (UAC) will prompt the user for consent to run the application elevated or enter the credentials of an administrator account used to run the application. |
566
+
567
+
For example, the following launches `notepad.exe` and open the text file `C:\Windows\System32\drivers\etc\hosts` which can only be modified with elevated privileges (as an Administrator) :
To get extended information about verbs, see the following Microsoft documentation article: [ShellExecute and ShellExecuteEx, Object Verbs](https://docs.microsoft.com/en-us/windows/win32/shell/launch#object-verbs).
572
+
573
+
574
+
553
575
### <open> action ###
554
576
555
577
The <open> element is used to open a document by the default associated application. The <open> element must be added under the <actions> element.
0 commit comments