Easy script to copy a single file?

S

Snapshot

Anybody know a simple script...DOS preferably... to
distribute a single source file to multiple destination
subdirectories? Thanks much!
 
P

Paul R. Sadowski

@echo off & setlocal
set FN="c:\somedir\somefile.txt"
for %%c in ("c:\work" "c:\bin" "d:\program files\adir") do copy %FN% %%c
 
B

Bob I

Copy filename.exe d:\Directory\subdirectory1\*.*
Copy filename.exe d:\Directory\subdirectory2\*.*
Copy filename.exe d:\Directory\subdirectory3\*.*
Copy filename.exe d:\Directory\subdirectory4\*.*
 
R

Ray at

Multiposted. Thanks for wasting my time answering your question elsewhere
when you already had an answer.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top