Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: [implementation specific to windows] writing a proper batch file for terminal start-up [WINDOWS RightClick tangent]

by pryrt (Prior)
on Oct 21, 2019 at 20:15 UTC ( #11107790=note: print w/replies, xml ) Need Help??


in reply to Re^4: [implementation specific to windows] writing a proper batch file for terminal start-up
in thread [implementation specific to windows] writing a proper batch file for terminal start-up

Windows right-click (tangent):

what I *really, really* miss is the ability in ubuntu to right click and "open terminal here."

open command window here should help you get the equivalent enabled in Windows. I additionally create an "Open this File's Directory" to the RClick menu for every file type by doing the following from a .reg file:

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\*\shell\OpenThisFilesDirectory] @="Open This File's Directory" "Icon"="%SystemRoot%\\system32\\cmd.exe" [HKEY_CURRENT_USER\Software\Classes\*\shell\OpenThisFilesDirectory\com +mand] @="cmd.exe /s /k pushd \"%W\""

Running that reg file builds the following key/value/data set:

HKCU\Software\Classes\*\shell\OpenThisFilesDirectory (Default) [REG_SZ] = Open This File's Directory Icon [REG_SZ] = %SystemRoot%\system32\cmd.exe HKCU\Software\Classes\*\shell\OpenThisFilesDirectory\command (Default) [REG_SZ] = cmd.exe /s /k pushd "%W"

(edit: s/\Q[tangent]\E/(tangent)/)

  • Comment on Re^5: [implementation specific to windows] writing a proper batch file for terminal start-up [WINDOWS RightClick tangent]
  • Select or Download Code

Replies are listed 'Best First'.
Re^6: [implementation specific to windows] writing a proper batch file for terminal start-up [WINDOWS RightClick tangent]
by Aldebaran (Chaplain) on Oct 22, 2019 at 23:15 UTC

    Works like a charm pyryt. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11107790]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2019-12-05 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (151 votes). Check out past polls.

    Notices?