Return to Snippet

Revision: 24485
at March 2, 2010 14:28 by shortstack


Initial Code
@echo off
setLocal EnableDelayedExpansion

set /p X=How many copies do you want? (Note: File to be copied must exist at C:\) 
:loop
set /a N+=1
if !N! gtr !X! goto :eof
	copy "C:\file.doc" "C:\%time:~,2%%time:~3,2%%time:~6,2%%time:~9,2%.doc"
goto :loop

Initial URL


Initial Description
Script makes a copy of "file.doc" as many times as you need it to. It renames them all with a time-based file name. 

Source and destination directories and file names/extensions can be modified easily.

Initial Title
Batch Copy Files

Initial Tags
copy

Initial Language
DOS Batch