hi,
I am trying to copy ZIP files from one directory to other directory - it's giving problem for me.
can you please help. - it's giving error invalid paramater
@echo off
for /f "tokens=*" %%a in (' dir C:\Hotfix\ABC /b *.ZIP') do (
echo.Copying file '%%a'
xcopy '%%a' C:\Hotfix\Test
timeout 1
)
ZIP files copy
Moderator: DosItHelp
Re: ZIP files copy
i want to copy all files but one at a time. if i use below - it will copy all files same time.
copy "C:\Hotfix\ABC\*.zip" "C:\Hotfix\Test\"
My requirement - i want to copy ZIP files, file by file for every 1 or 2 seconds.
copy "C:\Hotfix\ABC\*.zip" "C:\Hotfix\Test\"
My requirement - i want to copy ZIP files, file by file for every 1 or 2 seconds.
Re: ZIP files copy
You want to slow down your script
Strange requirement if you'd ask me.
Again untested:
Regards
aGerman

Again untested:
Code: Select all
@echo off
for /f "delims=" %%a in ('dir /a-d /b "C:\Hotfix\ABC\*.ZIP"') do (
echo Copying file "%%a"
copy "C:\Hotfix\ABC\%%a" "C:\Hotfix\Test\"
>nul timeout /t 1 /nobreak
)
Regards
aGerman
Re: ZIP files copy
Yes i agree - this is strange requirement.
I miss Quotes ZIP file names contains space (that's reason my script failed)
Thanks for your help - your script works perfect.
I miss Quotes ZIP file names contains space (that's reason my script failed)
Thanks for your help - your script works perfect.