Listb - a file explorer/viewer inside the console window
Posted: 12 May 2016 14:00
This script was included in the gotoxy archive, but I feel it could use its own thread.
What is it?
Listb is a file explorer to browse/view/copy etc files inside the console window. It is also reasonably easy to extend with added funtionality building on the separate extendlistb.bat.
Listb was inspired by List for DOS by Vernon D. Buerg, which no longer works for modern Windows machines.
Where is it?
Here: http://www.mediafire.com/download/2jnxy6vywh5arv6/listb.zip. Or it can be git cloned from https://github.com/misol1/gotoxy (which also has a lot of other stuff)
What are the requirements?
Listb.bat must be put in a PATH folder, otherwise Listb will cease to work when you browse to a separate folder than the one you started in. The same is true for extendlistb.bat, as well as the gotoxy.exe and cmdwiz.exe tools(included), which are used by Listb. Also, I use a small extra batch file called l.bat to make listb quicker to launch and work better (including making use of extendlistb.bat), put l.bat in a PATH folder too.
It is highly recommended to run listb by running l.bat. The arguments to l.bat are the same as for listb.bat below, but if arguments are not given, it does a better job of setting up the environment automatically.
What are the arguments to Listb/l.bat?
listb [path] [width] [height] [-][columns] [extend_path\name] [mouse]
[path] specifies which folder to start in. If not specified, this is ".", the current folder
[width] Number of columns (default is 80)
[rows] Number of rows (default is 50)
[columns] Number of file columns used. Default is 4. (this can be changed while running by pressing 1-9). A negative value enables adaptive columns, and the number then represents the maximum number of columns.
[extend_path\name] Path to optional script with extended functionality for Listb (this can be either an ABOLUTE path, or a PATH folder using the syntax for that). extendlistb.bat is included, and is pointed to by l.bat by assuming it is in a PATH folder.
[mouse] if this argument is "Y", then mouse support is enabled (you can click on files to go there, doubleclick to view it, right doubleclick to run/invoke it)
Do I need to edit something before running Listb/l.bat?
No, it will work fine as long as you put all the files in a PATH folder.
The default view and edit commands are set to work for everyone at first, but I personally prefer other options. The default is to use "more" to view files, and "notepad" to edit them. I prefer to use less for view and b.exe for editing. To change this, open extendlistb.bat and search for "SETVIEWERS". Then change them to whatever you would like to use.
What functionality does Listb have?
Press F1 or ? to see what keys are available. Most of it is centered around copying/moving/deleting one or more files (select several files with Space), but there is plenty of other functionality too. A nice feature is pressing 'i', which will run whatever program is associated with the extension of the file (a jpeg file will show in an image viewer, an exe file will run etc).
If any of the functionality is unclear or does not work as expected, please report that.
What are the limitations?
Things get rather slow when there are many files in a folder (say more than 2000). As for bugs, please report them. Also, see Listb.KNOWN_ISSUES (included)
What is it?
Listb is a file explorer to browse/view/copy etc files inside the console window. It is also reasonably easy to extend with added funtionality building on the separate extendlistb.bat.
Listb was inspired by List for DOS by Vernon D. Buerg, which no longer works for modern Windows machines.
Where is it?
Here: http://www.mediafire.com/download/2jnxy6vywh5arv6/listb.zip. Or it can be git cloned from https://github.com/misol1/gotoxy (which also has a lot of other stuff)
What are the requirements?
Listb.bat must be put in a PATH folder, otherwise Listb will cease to work when you browse to a separate folder than the one you started in. The same is true for extendlistb.bat, as well as the gotoxy.exe and cmdwiz.exe tools(included), which are used by Listb. Also, I use a small extra batch file called l.bat to make listb quicker to launch and work better (including making use of extendlistb.bat), put l.bat in a PATH folder too.
It is highly recommended to run listb by running l.bat. The arguments to l.bat are the same as for listb.bat below, but if arguments are not given, it does a better job of setting up the environment automatically.
What are the arguments to Listb/l.bat?
listb [path] [width] [height] [-][columns] [extend_path\name] [mouse]
[path] specifies which folder to start in. If not specified, this is ".", the current folder
[width] Number of columns (default is 80)
[rows] Number of rows (default is 50)
[columns] Number of file columns used. Default is 4. (this can be changed while running by pressing 1-9). A negative value enables adaptive columns, and the number then represents the maximum number of columns.
[extend_path\name] Path to optional script with extended functionality for Listb (this can be either an ABOLUTE path, or a PATH folder using the syntax for that). extendlistb.bat is included, and is pointed to by l.bat by assuming it is in a PATH folder.
[mouse] if this argument is "Y", then mouse support is enabled (you can click on files to go there, doubleclick to view it, right doubleclick to run/invoke it)
Do I need to edit something before running Listb/l.bat?
No, it will work fine as long as you put all the files in a PATH folder.
The default view and edit commands are set to work for everyone at first, but I personally prefer other options. The default is to use "more" to view files, and "notepad" to edit them. I prefer to use less for view and b.exe for editing. To change this, open extendlistb.bat and search for "SETVIEWERS". Then change them to whatever you would like to use.
What functionality does Listb have?
Press F1 or ? to see what keys are available. Most of it is centered around copying/moving/deleting one or more files (select several files with Space), but there is plenty of other functionality too. A nice feature is pressing 'i', which will run whatever program is associated with the extension of the file (a jpeg file will show in an image viewer, an exe file will run etc).
If any of the functionality is unclear or does not work as expected, please report that.
What are the limitations?
Things get rather slow when there are many files in a folder (say more than 2000). As for bugs, please report them. Also, see Listb.KNOWN_ISSUES (included)