How possible is it to get a disk listing in the following format via es.exe:
Root level of the disk, for example:
C:\
Then, the files of this root level, their size in bytes, date, time. The data separator is a tab. Example:
DumpStack.log.tmp 12288 2025.2.3 11:23.57
hiberfil.sys 13682393088 2025.2.3 11:23.57
Next, root folders with their contents, example:
APKing\ 0 2025.2.2 23:46.39
Uninstall.exe 235729 2025.2.2 23:46.39
Uninstall.ini 3384 2025.2.2 23:46.39
And then their subfolders with their contents:
APKing\tools\ 0 2025.2.2 23:46.39
7za.exe 651776 2016.5.10 12:41.10
aapt.exe 6115017 2016.3.30 3:13.42
So here it is, if complete, in this form:
C:\
DumpStack.log.tmp 12288 2025.2.3 11:23.57
hiberfil.sys 13682393088 2025.2.3 11:23.57
pagefile.sys 2147483648 2025.2.3 11:23.57 2025.2.3 11:23.57
swapfile.sys 16777216 2025.2.3 11:23.57
SYSTAG.BIN 1024 2025.2.3 2025.2.3 17:19.5
AomeiRecovery\ 0 2024.10.27 19:51.28
AomeiBoot.sdi 3170304 2024.4.1 10:22.34
AomeiBoot.wim 794935770 2024.10.27 19:51.19
APKing\ 0 2025.2.2 23:46.39
Uninstall.exe 235729 2025.2.2.2 23:46.39
Uninstall.ini 3384 2025.2.2 23:46.39
APKing\tools\ 0 2025.2.2 23:46.39
7za.exe 651776 2016.5.10 12:41.10
aapt.exe 6115017 2016.3.30 3:13.42
And so on...
This is all in the sorted version.
Exception for scanning: $Recycle.Bin
Perhaps in its full form such a task cannot be performed via es.exe, but at least it is as close to this condition as possible.
* * *
If it is possible to set such a command line for a disk, it may be possible to do it for some specific folder, taking it as a parent level.
Get disk listing
-
NotNull
- Posts: 5961
- Joined: Wed May 24, 2017 9:22 pm
Re: Get disk listing
Unfortunately that is not possible with ES.
-
therube
- Posts: 5727
- Joined: Thu Sep 03, 2009 6:48 pm
Re: Get disk listing
I'd think you could work something up, starting with Everything.
So you have full path & wrong order.
C:\TMP\copy\out>es c:/tmp/copy/out -size -dm
C:\TMP\copy\out>es.ex2 -instance 15 c:/tmp/copy/out -size -dm | sed "s/C:.*\\//"
So something can be done.
(Other tools that might do this directly, are escaping me...)
So you have full path & wrong order.
C:\TMP\copy\out>es c:/tmp/copy/out -size -dm
Cut the path part:0 04/09/2025 11:54 C:\TMP\copy\out\bar
0 04/09/2025 11:54 C:\TMP\copy\out\foo\bar
0 04/09/2025 11:54 C:\TMP\copy\out\foo
0 04/09/2025 11:54 C:\TMP\copy\out\bar\foo
329 04/09/2025 11:54 C:\TMP\copy\out
329 04/09/2025 11:52 C:\TMP\copy\out\to copy for an out
C:\TMP\copy\out>es.ex2 -instance 15 c:/tmp/copy/out -size -dm | sed "s/C:.*\\//"
Then rearrange further, maybe the tr command (is that the one?) to get the names in front, & some more sed's to change \s to \t...0 04/09/2025 11:54 bar
0 04/09/2025 11:54 bar
0 04/09/2025 11:54 foo
0 04/09/2025 11:54 foo
329 04/09/2025 11:54 out
329 04/09/2025 11:52 to copy for an out
So something can be done.
(Other tools that might do this directly, are escaping me...)