?
Solved

Bat script to copy a file to all folders in a directory

Posted on 2006-07-19
2
Medium Priority
?
783 Views
Last Modified: 2013-12-03
Hi all,

I need a .Bat script to copy a file to all folders in a directory

e.g.

Copy "C:\app.mdb" "C:\All folders in the C:\ directory"

There are about 40 folders under the c:\ dir.
0
Comment
Question by:joe90kane
  • 2
2 Comments
 
LVL 14

Accepted Solution

by:
cwwkie earned 1000 total points
ID: 17208731
@echo off
c:
cd \
for /d %%a in (*) do echo copy app.mdb "%%a"

this shows what it would copy. remove the echo to execute it.
0
 
LVL 14

Expert Comment

by:cwwkie
ID: 17208745
oops, just saw you also asked this in another ta (http:Q_21925067.html).
You should post a pointer question instead in such a situation (http://www.experts-exchange.com/help.jsp#hi262)
you can post in community support and ask to delete this question.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question