Listc - a modern Windows file explorer/viewer in the console window
Posted: 02 Sep 2017 05:18
Wait!? This looks awfully familiar
That's right, it's a clone of Listb (viewtopic.php?t=7147), but Listc is remade and optimized for Win10/modern machines. Running listb on a Win10 machine was just painfully slow when I tried it, but this one runs well.
What is it?
Listc is a file explorer to browse/view/copy etc files inside the console window. It is also easy to extend with added funtionality building on the separate extendlistc.bat.
Where is it?
Here: http://www.mediafire.com/file/a5134mw39b8228d/listc.zip.
What are the requirements?
If you want to be able to run the script from any folder (when already in a cmd window), you should put all the files in a PATH folder. If not, you are good to go.
It is highly recommended to run listc by running l.bat. The arguments to l.bat are the same as for listc.bat, but if arguments are not given, it does a better job of setting up the environment automatically. It also enables the custom addon commands in extendlistc.bat.
What are the arguments to Listc/l.bat?
listc [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
[rows] Number of rows
[columns] Number of file columns used (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 Listc (this can be either an ABOLUTE path, or a PATH folder using the syntax for that). extendlistc.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 l.bat?
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 extendlistc.bat and search for "SETVIEWERS". Then change them to whatever you would like to use. Also, the default external viewer is set to 'less'. If it is not installed on your machine, you have to change it to something else (like more?)
Also note that extendlistc.bat is an example of custom addons, and thus, it uses a bunch of external programs. If you don't have those programs, you need to either install them or change/remove these commands (the ones used are: less, grep, my script g.bat (see another thread), dlc.exe, ansicon, unzip, zip)
What functionality does Listc 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, like running/showing files with 'i'.
What are the limitations?
Things get rather slow when there are a lot of files in a folder. Also, I would not be surprised if there are remaining issues with some special characters and/or spaces in file/folder names.