Want to get the creation date of each file in the specified path through a script, can it only be achieved through a loop?Hello everyone!
This code can get a list of all file names in the specified path at one time

If you want to get the creation date of each file in this path at the same time, can you also get it at one time?
But seeing this example, it seems that it can only be achieved through a loop? Thanks!

ScriptingRe: 想通过脚本来获取指定路径的各个文件创建日期、只能通过循环来实现吗?With JSL (to my knowledge) you will have to loop over the file list you get from Files In Directory. You could also Run Program to get the names and creation dates at the same time by using cmd.exe or powershell.
Edit:
You might be able to use Multiple File Import to get the creation dates inside a directory. Take a look @Craige_Hales blog post Directory Tree: Explore Space Used by Folders
Re: Want to get the creation date of each file in the specified path through a script, can it only be achieved through a loop?thank you very much!
My purpose is to get the file name with the latest creation date in this path.
Re: Want to get the creation date of each file in the specified path through a script, can it only be achieved through a loop?you can try using Files In Directory, then open the last one of N items to try. In my impression, the files are sorted by time. Hope to help you.