dir list, delay, no tmp files . . ?
Posted: 10 Aug 2009 15:01
I have a directory where files are move into all day long. I want to move these files into another directory using a looping cmd script. However, I want to allow for a 10 second delay after reading the file list just to make sure I allow enough time for the file to get moved into the directory before I try to move it out (plus that helps with errorcodes). I can't think of any good way to . . .
Never mind. Here's what I've done:
Never mind. Here's what I've done:
Code: Select all
@echo off
cls
echo %time%
for /f %%a in ('dir /b /a-d ^&^& ping -n 11 127.0.0.1^>nul') do echo %%a
echo %time%