| language
Information, tips and tutorials for ZTree file manager
s_TempZTree
Clone a new temporary ZTree instance
When I don't want to corrupt history, I start another instance of ZTreeWin in an alternate configuration.
The following macro will launch a new instance of ZTree in an alternate configuration, preserving the state of the current one.
:: Launch a new instance of ZTree in an alternate configuration, preserving the state of current ,ALT_Z,R,RET, \,ALT_Z,\,temp,RET, ALT_X,%#ZTHome%\ztw.exe /TTemp,RET,ESC
Preliminaries:-
- Create a new Treespec Navigation history entry %#ZTHome% , and mark the history item with Z.
You can then navigate to ZTreeWin directory at any time by simply pressing Alt-Z.
To create this entry (see Help section 1.3.3 'Treespec Navigation') press the Backslash (\) key; ensure F5 edit mode is on.
Enter Ctrl-Home to clear the entry, then type %#ZTHome% and press Alt-Up to save in history.
Press Enter, then press Backslash, ensure you are on the line containing %#ZTHome% and press Ctrl-Z - Create a new directory 'temp' under #ZTHome (installation directory of ZTreeWin)
- Copy one or more of the ten configuration files to this directory. (See Help section 3.14 'Auxiliary Files')
Obviously these must include ZTW.HST if you don't want to corrupt normal ZTreeWin history, but you can customise this by including .ini files, and then configuring the new ZTreeWin.
How it works:-
| ,ALT_Z,R,RET, | Alt-ZLog saves a log file ZLOG.TMP containing the current state of ZTreeWin |
| \,ALT_Z,\,temp,RET, | navigate to %#ZTHome%\temp directory |
| ALT_X,%#ZTHome%\ztw.exe /TTemp,RET,ESC | Alt-eXecute ZTreeWin (the /Ttitle is optional, any other parameters can be included) |
Notes:-
The 2nd line could be:-
\,SH_HOME,%,#ZThome,%,\,temp,RET,
This would remove preliminary step 1, but requires that F5 edit mode is on, which cannot be guaranteed.
The new ZTreeWin will display the console icon (c:\) instead of the ZTreeWin icon.
A quirk (in XP & 2K), get a distinctive icon, rename it to ZTW.EXE, and place it in the alternate startup directory, this will be used for the new ZTreeWin.
Contributors to this page: ian
.
Page last modified on Sunday 06 of May, 2007 20:17:49 EDT by ian.
