Call History popup-window?

Aug 3, 2016
376
9
Netherlands
I did some rethinking on removing a directory from %PATH% (mentioned elsewhere on these forums)
and thought it would also be nice to be able to change the order of directories in %PATH%.

First idea was to (mis)use the history popup-window, as it has the possibility to change the order of items (Ctrl-Up/Down)

That should go something like this: create a local (dir)histry, remove all items, add the directories from %PATH%, open history popup-window.
Now you can delete entries (Del or Ctrl-D) and change the order.
After that: read the history and re-create the path out of it.

In (very raw) code:
Code:
@setlocal
@echo off
rem OPTION //ConsolePopupWindows=YES
history /L
@history /L /F

do this in /t";" /L %PATH (@history /a %this)
keystack PgUp
do this in /p history (@set TEST=%TEST;%this)

set TEST=%@RTRIM[;,%@LTRIM[;,%TEST]]
echo PATH=%TEST

"Problem" is the calling of the popup-window. Here it's done with keystack PgUp, but the script continues without waiting for this window to open.

Does anyone have an idea how to work around that?
 
Similar threads
Thread starter Title Forum Replies Date
S Debugger Bat file call history Support 9
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
EDerH Powershell call from script Support 24
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
nickles Call a complex function Support 13
rconn News Take Command v19 Call for Features Support 0
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
Vasilich How to? debugging files that use CALL command - possible?? Support 3
noahcoad Option to always CALL? Support 4
M @ExecStr vs. Call Support 4
O CALL SYSTEM from Fortran Support 4
rconn Last call for v12 feature requests Support 59
rconn Call for v11 feature requests Support 35
p.f.moore Running another batch file without CALL Support 7
J History file load hangs if file has complete garbage in it... Support 1
R History window wrong size, can't remember size change Support 12
T How to? retain command history across reboot? Support 6
nikbackm Speeding up the history dialog Support 6
D ParentDirectory does not update directory history Support 6
vefatica Command history search is off Support 7
D Directory History Window with wildcard search Support 3
R Long commands retrieved from command history have blank line when wrapped Support 20
Joe Caverly @HISTORY issues Support 4
vefatica Deleting entries in the command history popup? Support 3
H History and TPipe Oddness Support 3
D History and control-C Support 1
G Console exe up / down history Support 8
D What does the file "..\Everything\Run history.csv" store? Support 5
rps Cmd history recall Support 4
David McClelland Command history loosing entries Support 18
R history features. Support 6
rps How to? Shralias and producing history.sav, alias.sav .. Support 6
M Ctrl-C when using command line history does nothing Support 2
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
vefatica ESC after recalling a command from history Support 3
T TCHelp executable history? Support 2
thorntonpg @blahblah added to history. Support 0
M HISTORY lessons ... Support 0
vefatica The help and IE's history Support 16
D Towards shared (dir-)history lists Support 3
vefatica Ctrl-Enter in command history window? Support 8
vefatica History recall turns off Quick-Edit Support 4
C history is getting deleted under unknown circumstances Support 9
R V19 - At startup, TCC save directory in the directory history list Support 2
T [TCC 18] Can't read nor write history Support 1
I Possible Bug: History /n Returns Nothing Support 3
jbanaszczyk Lost history Support 4
T history.sav Support 4
T How to? sort history in tcexit.btm Support 22
vefatica OT: Windows console history? Support 7

Similar threads