Batch file to copy one file to various locati

Hewlett-packard / Dx2000
May 26, 2010 at 04:51:10
Specs: Windows XP
Hi,
I want to create a batch file for the following
scenario, i have a file which i have to copy it to
a folder named NORMAL_PPS, this
NORMAL_PPS is located in many folders in
which i have to copy that file, i dont know in
which folder that NORMAL_PPS wil be located
i need to search for the NORMAL_PPS folder
and where ever this folder is available i have to
copy this file. please help in this, its really very
urgent.

Thanks in Advance.


See More: Batch file to copy one file to various locati

Report •


#1
May 26, 2010 at 12:24:26
@echo off & setlocal
pushd \
for /f "tokens=*" %%a in ('dir /b /ad /s NORMAL_PPS') do copy /y \work\myfile "%%a"
::------- end

Report •
Related Solutions


Ask Question