Solved

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

Posted on 2006-07-19
2
775 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

861 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now