SHIFT+ENTER feature for Powershell too?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Hurdet
Power Member
Power Member
Posts: 716
Joined: 2003-05-10, 18:02 UTC

SHIFT+ENTER feature for Powershell too?

Post by *Hurdet »

Do it is possible to use SHIFT+ENTER feature to open a DOS box without close it also with Powershell scripts?
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

You have to replace the "NOCLOSE.EXE".

For example in AutoIt:

Code: Select all

ShellExecute("powershell.exe",'-noexit -nologo -command "&{' & $CmdLineRaw & '}"')
Compile as NOCLOSE.EXE and replace the original in the TC folder.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

There is a noclose replacer that may be configured:
http://totalcmd.net/plugring/noclose.html
Post Reply