Rápido e sujo no PowerShell:
C:\> dir -recurse | out-file X:\pathtofile.txt
Isso produzirá algo semelhante a isto:
Directory: E:\Kodak00\PDFs\index\parts
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 8/10/2002 4:18 a.m. 40960 00000005.ddd
-a--- 26/09/2002 7:55 a.m. 446464 00000005.did
-a--- 8/10/2002 4:18 a.m. 0 00000005.mrg
-a--- 8/10/2002 4:18 a.m. 17408 00000006.ddd
-a--- 5/10/2002 3:19 a.m. 221184 00000006.did
-a--- 8/10/2002 4:18 a.m. 0 00000006.mrg
-a--- 8/10/2002 4:18 a.m. 17408 00000007.ddd
-a--- 8/10/2002 3:48 a.m. 102400 00000007.did
-a--- 8/10/2002 4:18 a.m. 0 00000007.mrg
-a--- 8/10/2002 4:18 a.m. 16384 00000008.ddd
-a--- 8/10/2002 4:18 a.m. 32768 00000008.did
-a--- 8/10/2002 4:18 a.m. 0 00000008.mrg
-a--- 8/10/2002 4:20 a.m. 52224 00000009.ddd
-a--- 8/10/2002 4:18 a.m. 641024 00000009.did
Se você adicionar -name
ao comando em algum lugar depois de dir
, mas antes do |
, obterá o seguinte:
PDFs\index\parts Directory: E:\Kodak00\PDFs\index\parts
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 8/10/2002 4:18 a.m. 40960 00000005.ddd
-a--- 26/09/2002 7:55 a.m. 446464 00000005.did
-a--- 8/10/2002 4:18 a.m. 0 00000005.mrg
-a--- 8/10/2002 4:18 a.m. 17408 00000006.ddd
-a--- 5/10/2002 3:19 a.m. 221184 00000006.did
-a--- 8/10/2002 4:18 a.m. 0 00000006.mrg
-a--- 8/10/2002 4:18 a.m. 17408 00000007.ddd
-a--- 8/10/2002 3:48 a.m. 102400 00000007.did
-a--- 8/10/2002 4:18 a.m. 0 00000007.mrg
-a--- 8/10/2002 4:18 a.m. 16384 00000008.ddd
-a--- 8/10/2002 4:18 a.m. 32768 00000008.did
-a--- 8/10/2002 4:18 a.m. 0 00000008.mrg
-a--- 8/10/2002 4:20 a.m. 52224 00000009.ddd
-a--- 8/10/2002 4:18 a.m. 641024 00000009.did
000005.ddd
PDFs\index\partsPDFs\index\parts%pre%000005.ddd
PDFs\index\parts%pre%000005.did
PDFs\index\parts%pre%000005.mrg
PDFs\index\parts%pre%000006.ddd
PDFs\index\parts%pre%000006.did
PDFs\index\parts%pre%000006.mrg
PDFs\index\parts%pre%000007.ddd
PDFs\index\parts%pre%000007.did
PDFs\index\parts%pre%000007.mrg
PDFs\index\parts%pre%000008.ddd
PDFs\index\parts%pre%000008.did
PDFs\index\parts%pre%000008.mrg
PDFs\index\parts%pre%000009.ddd
PDFs\index\parts%pre%000009.did
000005.did
PDFs\index\parts%pre%000005.mrg
PDFs\index\parts%pre%000006.ddd
PDFs\index\parts%pre%000006.did
PDFs\index\parts%pre%000006.mrg
PDFs\index\parts%pre%000007.ddd
PDFs\index\parts%pre%000007.did
PDFs\index\parts%pre%000007.mrg
PDFs\index\parts%pre%000008.ddd
PDFs\index\parts%pre%000008.did
PDFs\index\parts%pre%000008.mrg
PDFs\index\parts%pre%000009.ddd
PDFs\index\parts%pre%000009.did
Você também pode querer incluir um -force
após o -recurse
, pois isso também mostrará os arquivos ocultos e do sistema.
Esteja avisado, este arquivo será grande. Eu corri isso contra o C: \ do meu computador de trabalho e gerou um arquivo txt de 45MB. Isso exclui todas as pastas às quais minha conta de usuário não tem acesso.