Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I am using windows XP. I have 2 files example :c:\a.txt
c:\b.txtI want to paste above 2 files into my multiple subfolder's (approx 220 subfolders) by batch system or any command. My destination subfolders looks like :
C:\A\mvm\travel\subdomain\afghanistan\httpdocs
C:\A\mvm\travel\subdomain\bhutan\httpdocsand so on..
How to do this?

If you get the folder names into a txt file you can:
=====================================
@echo off & setLocal EnableDelayedExpansionfor /f "tokens=* delims= " %%a in (myfold.txt) do (
copy c:\a.txt %%a
copy c:\b.txt %%a
)
=====================================
If at first you don't succeed, you're about average.M2

Just listen....
make a batch file where both text files are present and copy following code in the batch file...
===@echo off
copy a.txt C:\A\mvm\travel\subdomain\*\httpdocs
copy b.txt C:\A\mvm\travel\subdomain\*\httpdocs
pause===
run batch file and both text files will be copied to all httpdocs folders......

Gee, who'da thought.
Try a little RTFM
Read the first msg.
=====================================
If at first you don't succeed, you're about average.M2

I never heard of * replacing a directory. But I tried it and it didn't work. Wildcards are for files, not directories.

I guess his mission is to potshot stale date threads.
=====================================
If at first you don't succeed, you're about average.M2

computing.net is to discuss problems........not to pass comments......got it....
mister "Mechanix2Go"...?????=============
hAnSuM KrIsHnA
-a bLACK hAT hACKER
'N'
-a pRO cRACKER
...........................

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |