1 | initial version |
To select multiple recently uploaded files using a batch file, you can use the following steps:
dir /od /b >files.txt
set /p files=<files.txt
set /a counter=0
for /f "tokens=*" %%i in (files.txt) do (
set /a counter+=1
if !counter! leq N (
set fileList=!fileList! "%%i"
)
)
echo Selected files: %fileList%
del files.txt
Note: Replace "N" with the number of files you want to select. Also, make sure to adjust the "dir" command to list only the files that were recently uploaded (e.g. using the "/tw" option to list files modified in the last N hours).