Requesting help please batch move one file at a time with 2 minute interval from one directory to another. Don't care about file name.
Thanks!!
Copy files one at a time w/time interval
Moderator: DosItHelp
Re: Copy files one at a time w/time interval
bildol wrote:Don't care about file name.
What does that mean? Is there only one file in the directory or should the script move each file in this directory?
Regards
aGerman
Re: Copy files one at a time w/time interval
Which version of windows are you running?
Re: Copy files one at a time w/time interval
Untested:
Source is: c:\folder-one
Target is: c:\folder-two
Source is: c:\folder-one
Target is: c:\folder-two
Code: Select all
@echo off
pushd "c:\folder-one"
for /f "delims=" %%a in ('dir /b /a-d') do (
echo moving "%%a"
move /y "%%a" "c:\folder-two"
ping -n 120 localhost >nul
)
popd