This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
context-menu-items.xml
48 lines (40 loc) · 1.55 KB
/
context-menu-items.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Root>
<ItemGroup
Key="file_utils"
Name="File Utils"
Icon="C:/Program Files/internet explorer/images/bing.ico"
Extended="true"
Type="File">
<Item
Key="read_content"
Name="Read content"
Icon="C:/Program Files/internet explorer/images/bing.ico"
Command="powershell.exe -NoExit -Command Get-Content '%1'" />
<Item
Key="remove_content"
Name="Remove content"
Icon="C:/Program Files/internet explorer/images/bing.ico"
Command="powershell.exe -Command Set-Content %1 -Value ''" />
<ItemGroup
Key="subutils"
Name="Get size of folder"
Icon="C:/Program Files/internet explorer/images/bing.ico">
<Item
Key="nothing"
Name="Press me! Nothing will happen."
Icon="C:/Program Files/internet explorer/images/bing.ico" />
</ItemGroup>
</ItemGroup>
<Item
Key="get_size_of_all_files"
Name="Get size of folder"
Icon="C:/Program Files/internet explorer/images/bing.ico"
Type="Directory"
Command="powershell.exe -NoExit -Command (Get-ChildItem -File) | ForEach-Object { $total = 0 } { $total += $_.Length } { $total }" />
<Item
Key="get_number_of_characters"
Name="Get number of characters"
Icon="C:/Program Files/internet explorer/images/bing.ico"
Type="File"
Command="powershell.exe -NoExit -Command (Get-Content '%1' -Raw).Length" />
</Root>