Topic: Poor man's XTREE (1 of 7), Read 86 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Tuesday, May 21, 2002 03:32 PM

Do you remember the old DOS file manager XTREE?

Due to the need for solving some special tasks I wrote a VEDIT macro that has some features like XTREE.

For example:
- Sorting per filename or per path.
- View the file the cursor is on.
- Compare two files.
- Delete a file or a group of files.
- And maybe more...

Since I'm using a german Windows the macro is only able to work with german operating system messages yet.
But I would like to include english speaking systems too.

Can please someone make an english example DOS DIR listing with subdirectories and mail it to me?
(Plus a short note about it here to avoid double work for others.)


Just open a DOS command prompt and type:

dir C:\windows /s > listing.txt

where C:\windows is just an example. I need a directory listing WITH subdirectories.

The above created file "listing.txt" is what I would like to have (with an additional note about
the operating system version).

It would be nice to receive english examples from
- Windows 95/98
- Windows ME
- Windows 2000
- Windows XP


Thanks in advance

Christian

 


Topic: Re: Poor man's XTREE (2 of 7), Read 82 times
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Tuesday, May 21, 2002 04:19 PM

Christian:

I can't supply an english listing created by an Win-Dos either but i can
supply one created by TakeCommand32 if that would be of any help.

Somewhere hidden in the chaos of my office there is an xtree *gold"
5.25 diskette ... and

.... at http://www.jeffreycjohnson.com/

the author tells the story of the program and of himself.

Fritz

--
Dr. Friedrich Heberlein, Akad. Direktor
Seminar für Klassische Philologie der KU Eichstaett
Universitaetsallee 1
D-85071 Eichstaett / Bayern
email: sla019@...
Tel.: +49 8421 93 1544 / 93 3544

 


Topic: Re: Poor man's XTREE (3 of 7), Read 84 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Wednesday, May 22, 2002 04:10 AM

Fritz:

thank you for the link! It's very interesting to read something about XTREE.

I have used XTREE-Gold for several years and was really missing it after Windows came up.

At the XTREE page I found a link to ZTreeWin, a "clone". I'll try it.


>I can't supply an english listing created by an Win-Dos
>either but i can supply one created by
>TakeCommand32 if that would be of any help.

No. Not now. Thank you.
In the first run I plan to work with standard Windows only.
That is hard enough ;-)

Christian

 


Topic: Poor man's XTREE (4 of 7), Read 82 times
Conf: VEDIT Macro Library
From: Ian Binnie
Date: Wednesday, May 22, 2002 08:54 PM

Don't reinvent the wheel - it has already been done for you.

Check out ZtreeWin, a shareware program which is better that Xtree ever was, but maintains upward compatibility.
http://www.ztree.com/

ZtreeWin & Vedit work together well, and I use in place of explorer & notebook for all my file system management.

 


Topic: Poor man's XTREE (5 of 7), Read 84 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Thursday, May 23, 2002 06:59 AM

Ian:

you wrote:
>Don't reinvent the wheel - it has already been done for you.

Yes, but doing things by myself I can learn much.
And writing one's own tools for special cases is very powerful.

>Check out ZtreeWin [...]

I downloaded it yesterday (It is mentioned on the site Fritz wrote about).
It's really great!
I never have known how much I missed the old XtreeGold over the last years!

And there are more XTree clones around. Since 2 hours ago I'm using UnixTree for Linux here. :-)))


Christian

 


Topic: Poor man's XTREE (6 of 7), Read 74 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Sunday, May 26, 2002 11:37 AM


Here is my first public beta of XTREE.VDM.


The macro lets you read in the contents of a directory (file listing created by DIR automatically) - optional with all subdirectories (and that's the important feature for me). Then you can perform some task on that list:

This is the online help available with Shift-F1:

F11 Menu for sorting the file (or use the keys below directly)
Shft-F11 Sort the list by filename
Ctrl-F11 Sort the list by pathname
Alt-F11 Sort the list by date/time
Ctrl-Shft-F11 Sort the list by size

F12 Load the file the cursor is on into VEDIT (and close it again)
Shft-F12 Compare the two files (cursor on first one)
Ctrl-F12 Delete file -or- all files marked as block (caution!)
Alt-F12 Re-read the directory contents and thus rebuild the list

It should work with all Windows versions from 95 up.
But I wasn't able to determine the language automatically. Up to now the macro is able to work with english and german Windows.
English is the default. So you have to modify one line in the macro if your Windows is speaking german (Just at the beginning. It's documented.)

Christian

PS:
This macro is not intended to be a real XTREE clone! I wrote it for special purposes . Maybe it's helpful for other users too. At least as programming example...

 
XTREE.VDM (17KB)

 


Topic: Re: Poor man's XTREE (7 of 7), Read 62 times
Conf: VEDIT Macro Library
From: Peter Rejto
Date: Tuesday, June 11, 2002 02:20 PM

Christian,

Thanks for your suggestion. Now I understand your macro much better. Actually, I am using your macro as a Dialog_Input_1 tutorial on check boxes. I hope that you post it as such. I could find only radio boxes on your previous tutorial.

I have slightly adapted your suggestion. Specifically, I wrote a new SORTEXT subroutine and then added checkbox #5. I also added a command linking the two.

I am enclosing my subroutine, which seems to work fine. I hope that other Vedit users will find sorting by extension also useful. I vaguely remember that Ted promised such an option some time ago.

// -----------------------------

:SORTEXT:

// sort the files by extension
#103=File_Check("|(VEDIT_TEMP)\XTREE.DIR")
if(#103 != -1){
Buf_Switch(#103)
Buf_Quit(OK)
}
//File_Delete("|(VEDIT_TEMP)\XTREE.DIR",DOS+SIMPLE+NOMSG+OK)
System("DIR /OE > |(VEDIT_TEMP)\XTREE.DIR", DOS+SIMPLE+NOMSG)
File_Open("|(VEDIT_TEMP)\XTREE.DIR")
Return

Thanks again,

-peter.