Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
avery_larry
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
#1
Post
by avery_larry » 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:
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%