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).
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-07-16 03:37:29 +0000
Seen: 14 times
Last updated: Jul 16 '23
What does "Read timed out" mean in relation to a Batch Request in the Google Calendar API?
How can I run several scripts when the application starts?
How can a whole collection be removed using Cloud Functions?
How to create an empty file using a batch file?
Can the batch set init function be configured to differentiate between upper and lower case letters?
What is the process for incorporating batch processing into google apps script?
How can I print all but the first 1000 Lines from a File in Bash?
How can a function pointer be transferred between different files in CUDA?