Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

9 Experts available now in Live!

Get 1:1 Help Now