Skip to content

Commit

Permalink
➕ Add reg file
Browse files Browse the repository at this point in the history
  • Loading branch information
DungGramer committed Sep 14, 2021
1 parent 0ea3d89 commit bf3b0e2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Usage
Download `command.exe` and move to path `C:\command.exe`. After that, run `setup.reg`.
If you want change file name or path, you need edit path inside `setup.reg` before run.

`cmd:// + command`
```bash
cmd://winver
Expand Down
2 changes: 1 addition & 1 deletion command.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ def decode(url):
url = decode(sys.argv[1])

print(url)
os.system(url + ' &echo Press enter to exit &pause >nul')
os.system(url + ' &echo: & echo Press enter to exit &pause >nul')
12 changes: 12 additions & 0 deletions setup.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\cmd]
"URL Protocol"="URL:cmd Protocol"

[HKEY_CLASSES_ROOT\cmd\shell]

[HKEY_CLASSES_ROOT\cmd\shell\open]

[HKEY_CLASSES_ROOT\cmd\shell\open\command]
@="\"C:\\command.exe\" \"%1\""

0 comments on commit bf3b0e2

Please sign in to comment.