Easy script to copy a single file?

  • Thread starter Thread starter Snapshot
  • Start date Start date
S

Snapshot

Anybody know a simple script...DOS preferably... to
distribute a single source file to multiple destination
subdirectories? Thanks much!
 
@echo off & setlocal
set FN="c:\somedir\somefile.txt"
for %%c in ("c:\work" "c:\bin" "d:\program files\adir") do copy %FN% %%c
 
Copy filename.exe d:\Directory\subdirectory1\*.*
Copy filename.exe d:\Directory\subdirectory2\*.*
Copy filename.exe d:\Directory\subdirectory3\*.*
Copy filename.exe d:\Directory\subdirectory4\*.*
 
Multiposted. Thanks for wasting my time answering your question elsewhere
when you already had an answer.

Ray at work
 
Back
Top