Skip to content

About

Add "open Windows terminal here" into right-click context menu

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

AddTerminalToRight-Click

Add "open Windows terminal here" into right-click context menu

#How to use: run as adminstrator file WtRightClick.bat

#problem solving in this project

  1. Interactive with Windows Registry => HKEY_CLASSES_ROOT, in real, it is \HKEY_LOCAL_MACHINE\SOFTWARE\Classes
  2. PowerShell cannot get ".ps1" path => Create batch file to call .ps1
  3. When "Run as administrator" ".bat" file, the starting directory is C:\Windows\System32 => add 'cd %~dp0' in first row, to run in current directory of file.
  4. Run PowerShell with white spaces in path from Batch file => Specific -File https://stackoverflow.com/questions/45760457/how-to-run-a-powershell-script-with-white-spaces-in-path-from-command-line#:~:text=If%20you%20want%20to%20run,%2C%20you%20have%20to%20use%20%22%20.

About

Add "open Windows terminal here" into right-click context menu

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages