also you could: (not tested) @echo off & setlocal set x=%1 if "%x%" equ "" set x=? if "%x:-1%" equ "?" ( echo usage: %0 file dir1\[newnameA] dir2\[newnameB] ... echo copies file to each named directory, optional namechange. goto :eof ) :00 if "%2" equ "" goto :eof copy %1 %2 shift goto :00
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.