Using this as am example For statement in batch script from SO
tried the following
for %%f in (c:\username\desktop\Test\*.log) do (
echo %%~nf
)
I get the following error: %%f was unexpected at this time
My goal is to move [n] files from one dir to another, wait [x] seconds and then move the next [n] files
I can do the time wait by doing a ping for an unknown site and force the delay or use timeout [not yet tested as this would need to be done without any user intervention]
If there is a better way to do this, i am open as this is my first dab at this type of scripting.