Создайте файл/список папок

Существует ли быстрый способ произвести список файлов и папок в папке в Windows XP / Vista в текстовом файле? Как?

8
задан 17.06.2011, 17:34

4 ответа

Немного приложения под названием FileList должно сделать задание приятно для Вас, если Вы хотите что-то немного более мощное, чем dir /s > files.txt

От README:

FileList is a command line utility that produces a list of files of the given
path in the CSV format, which can be imported in a spreadsheet or database.
The list includes the file name, the size, the path, the last access and change
date, etc. Supported Windows versions: Windows 200*/XP/Vista

Usage:

 FILELIST [/OPTION] [/FILTER pattern1;pattern2;...] [/NOHEADER]
          Path [>list.csv]

/NOHEADER   Leaves out the column headers from the output.

/ATTRIBUTES Includes a column with the attributes that are set for each file.

/OWNERS     Adds a column that contains the owner of each file. Querying the
            file owner is unfortunately a slow operation in a Windows domain,
            this is why file owners are turned off by default. USing this option
            will significantly slow down the generation of the list.

/AUTHORS    Additionally extracts name of the author from MS Office documents.
            Do not confuse the author with the owner. The owner is listed in
            an extra column by default. This switch slows down the creation of
            the list.

/LASTSAVEDATE Additionally extracts the last save date from MS Office documents.

/MD5        Includes a column with the MD5 checksum of each file.

/FILTER     Allows to specify one or more filters, separated with semicolons.
            The wildcards '*' and '?' may be used.

Using ">" the output can be redirected to a file.


INSTALLATION
~~~~~~~~~~~~
Just place FileList.exe where you want, we recommend your Windows folder.


TIPS & ANNOTATIONS
~~~~~~~~~~~~~~~~~~
* FileList uses the list separator that is set in the Control Panel of Windows.
* Using the extension .CSV for the output file enables you to open the file
  in Excel with a double click in the Explorer.
* The Windows "at" command can be used to schedule the creation of lists with
  FileList. The following command creates a list of all mp3 files including
  their owners every monday night:
  at 00:01  /EVERY:m "C:\path\to\filelist.exe" /OWNER /FILTER *.mp3 c:\ ^>output.txt
9
ответ дан 07.12.2019, 13:50

В каких деталях Вы нуждаетесь? В частности, что Вы хотите, чтобы это сделало это

dir /s > files.txt

не выполняет?

6
ответ дан 07.12.2019, 13:50

Использование PowerShell:

dir > filename

или, для рекурсивного

dir -r > filename

Если Вы хотите, *.foo файлы только:

dir . -r -filter *.foo > filename
2
ответ дан 07.12.2019, 13:50

Лучшее, которое я нашел для Вас, не используя пакетный файл:

dir/B> files.txt

Это даст Вам, все названия файлов и каталогов в текущей папке, но извлечь размер файлов, не получая информацию времени, похожи на него, или возьмет пакетный файл, ИЛИ необходимо будет установить версию Windows sed и использование что отредактировать строки (путем конвейерной обработки в него).

1
ответ дан 07.12.2019, 13:50

Теги

Похожие вопросы