I want to create a list of files with the name and the metadata "Date" (“Fecha”).

Susana Gil Castro 0 Reputation points
2024-06-16T08:41:53.92+00:00

Hello,

I am trying to generate a list of files within a folder with the file name and several metadata. Among them is the "Date" metadata. Not the creation date, nor the last access date, nor the last write (modification) date. Rather, the "Date" parameter. I haven't found this in cmd. I tried the basic commands, and they are not:


dir /T:C /T:A /T:W > file_list.txt

When you add columns in File Explorer, one of the possible dates to add is "Date", which contains the actual creation date of the file, because when you copy or cut and paste it, the creation date changes to the date the paste was made.

That's why I'm interested in retrieving this detail. But I can't find information anywhere on how to do it.

If it's not possible with cmd, I would like to print the list with the details directly from the File Explorer window or something like that. There are many files, and I don't have the time to take screenshots of more than 30,000 files.

I am sharing the image with the parameter I want: https://drive.google.com/file/d/1X_wFwG1QHM8APAUA2KP-OiwUSRYORGQB/view?usp=drive_link (my SO is in spanish)

Does anyone know how to do it?

Thank you!

Best regards,

Susana

===

Quiero crear una lista de archivos con el nombre y el metadato "Fecha"

Hola,

Estoy queriendo sacar un listado de archivos de dentro de una carpeta con el nombre del archivo y varios metadatos. Entre ellos se encuentra el de "Fecha". No Fecha de creación, ni Fecha de último acceso, ni Fecha de última escritura (modificación). Si no el parametro "Fecha". Este no lo he localizado en cmd. He probado con los básicos y no son:

dir /T:C /T:A /T:W > listado_archivos.txt

Cuando añades columnas en el explorador de archivos, una de las feschas posibles de añadir es "Fecha", que contiene la fecha real de creación del archivo, ya que cuando lo copias o lo cortas y lo pegas, la fecha de creación se altera quedando la fecha en la que se hizo el pegar como fecha de creación.

Por eso me interesa recuperar ese detalle. Pero no encuentrro información en ningun sitio de como hacerlo.

Si no se puede por cmd, me gustaría imprimir el listado con los detalles directamente de la ventana del explorador o algo así. Son muchos archivos y no me da el tiempopara hacer pantallazos de más de 30000 archivos.

Comparto la imagen con el parametro que quiero: https://drive.google.com/file/d/1X_wFwG1QHM8APAUA2KP-OiwUSRYORGQB/view?usp=drive_link

¿Alguien sabe como hacerlo?

Gracias!

Un saludo,

Susana

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,967 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 32,336 Reputation points Microsoft Vendor
    2024-06-17T00:56:28.0333333+00:00

    Hi Susana Gil Castro,

    Thank you for posting in Microsoft Q&A.

    You can give a try to the PowerShell command Get-ChildItem. Open Windows PowerShell from the start menu and run

    Get-ChildItem -Path C:\Folder | Select-Object Name, CreationTime, LastAccessTime, LastWriteTime | Out-File -FilePath C:\Path\file_list.txt
    

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments