Hello,
as the title says, I would like to know how to map PowerShell to a key in TC. I managed to map F12 to open CMD but can't find an option for PS.
Thank you
Map F11 to open PowerShell in current path
Moderators: white, Hacker, petermad, Stefan2
Re: Map F11 to open PowerShell in current path
Hi Adnan and welcome.
Search the forum for "user defined command" or "usercmd.ini"
(FAQs: User-Defined Command (UDC) (usercmd.ini) em_command >> viewtopic.php?p=344777#p344777)
The basics:
Just edit the file "usercmd.ini" in your TC directory.
Note 1: Usercmd.ini is always in the same directory as wincmd.ini (see Help menu > About TC > Paths)
Note 2: If you have no usercmd.ini there, create the file first as plain text file (ASCII or UNICODE)
So create an UDC in the "usercmd.ini"
[em_LaunchPowerShell]
cmd=PowerShell.exe
or as you like, f.ex:
[em_PowerShell_NoExit]
cmd=PowerShell.exe -NoProfile - NoExit
and next use an such created "em_LaunchPowerShell" as command for your keyboard mapping.
Menu Configuration > Options... > Misc. >>> Redefine hotkeys (Keyboard remapping)
(or just modify the wincmd.ini, search for [Shortcuts] and add a line "F11=cm_LaunchPowerShell")
HTH?
Search the forum for "user defined command" or "usercmd.ini"
(FAQs: User-Defined Command (UDC) (usercmd.ini) em_command >> viewtopic.php?p=344777#p344777)
The basics:
Just edit the file "usercmd.ini" in your TC directory.
Note 1: Usercmd.ini is always in the same directory as wincmd.ini (see Help menu > About TC > Paths)
Note 2: If you have no usercmd.ini there, create the file first as plain text file (ASCII or UNICODE)
So create an UDC in the "usercmd.ini"
[em_LaunchPowerShell]
cmd=PowerShell.exe
or as you like, f.ex:
[em_PowerShell_NoExit]
cmd=PowerShell.exe -NoProfile - NoExit
and next use an such created "em_LaunchPowerShell" as command for your keyboard mapping.
Menu Configuration > Options... > Misc. >>> Redefine hotkeys (Keyboard remapping)
(or just modify the wincmd.ini, search for [Shortcuts] and add a line "F11=cm_LaunchPowerShell")
HTH?
Re: Map F11 to open PowerShell in current path
It worked! Thanks a lot.
Have a nice day!
Have a nice day!