Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim1xs committed Jun 5, 2024
1 parent 9f6ca04 commit 34c8989
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# new-item-context

Simple batch&reg script for adding new item into 'New' section of Windows Context Menu

# Usage:

Open `item_format.reg` and change these arguments to your:

- '::EXTENSION::' = Name of file extension (ex: `lua`)
- '::TEMPLATE-FILE::' = Name of template file from `.Templates` directory (ex: `Script.lua`)
- '::ITEM-NAME::' = Name of item in context menu (ex: `Lua Script`)
1 change: 1 addition & 0 deletions Templates/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Put template file in this folder!!!
10 changes: 10 additions & 0 deletions item_format.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.::EXTENSION::]
@="::EXTENSION::"

[HKEY_CLASSES_ROOT\.::EXTENSION::\ShellNew]
"FileName"="::TEMPLATE-FILE::"

[HKEY_CLASSES_ROOT\::EXTENSION::]
@="::ITEM-NAME::"
4 changes: 4 additions & 0 deletions start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@ECHO OFF
copy "%cd%\Templates\" "%appdata%\Microsoft\Windows\Templates\"
regedit.exe /S item_format.reg
TIMEOUT /T 10

0 comments on commit 34c8989

Please sign in to comment.