PURPOSE OPERATION OPTIONS COMMAND LINES RELATED PROGRAMS
LEVELS will take a files that has full paths of files and output only X levels from the record. For instance, if the level of the path is "C:\my documents\username\funandgames\video" and the user only wants to see what the highest 2 levesl are they would use levels inputfile 2. This would produce output of "C:\my documents\username".
The benefit of this program is to produce for clients lists of the highest levels of directories found on a drive. Most often listing levels in a server, so the highes X levels can be seen for those user areas and not have to see multiple levels of user created trash.
The program take the file to process, and a single item indicating how many levels you want to display. The input file should be a file which contains one path per line, and has a format of either, only the path, or a delimited file where the delimiter is either a pipe symbol (|) or a tab, as is exported by the X-Ways export list option. In any case, the path MUST be the first item on the line, with no leading blanks.
The output is to the screen, which can easily be redirected > to an output file.
The output is a list the first X levels found in the path field of the input file.
Sample input
PATH D:\WORK\MARES D:\WORK\MARES\base D:\WORK\MARES\base\Release D:\WORK\MARES\base\Ver15 D:\WORK\MARES\Crckit D:\WORK\MARES\Crckit\VER15 D:\WORK\MARES\Crckit\VER20 D:\WORK\MARES\Crckit\Release D:\WORK\MARES\Diskcat D:\WORK\MARES\Diskcat\Ver15 D:\WORK\MARES\Diskcat\VER20 D:\WORK\MARES\Diskcat\Releaselevels input 3
PATH D:\WORK\MARES D:\WORK\MARES\base D:\WORK\MARES\base D:\WORK\MARES\base D:\WORK\MARES\Crckit D:\WORK\MARES\Crckit D:\WORK\MARES\Crckit D:\WORK\MARES\Crckit D:\WORK\MARES\Diskcat D:\WORK\MARES\Diskcat D:\WORK\MARES\Diskcat D:\WORK\MARES\Diskcattop
None
C:>LEVELS file_name X (indicating how many levels you wish to show) C:>LEVELS file_name X > redirected_output_file
C:>LEVELS inputfilenameg 3
diskcat --levels option
top