Prev: Problem
Next: using notepad to edit a batch file
From: John Smith on 4 Sep 2009 11:56 Try this: for /f "tokens=1-5 delims=/ " %%d in ("%date%") do copy "\\server\directory\file" %%d-%%e-%%f-%%g.ext Substitute "\\server\directory\file" with the actual location of the file and "ext" with the actual extension of the file. This will save the file on the current directory (where the batch file is run) as something like 2009-9-3.ext Since you only copy it once a week, using date as the file name should be OK. Try on a short file first. Use scheduler to set it to run once a week. I'm not sure whether copy command would work over network. If not, search for robocopy, download it and use it. For further question, post to alt.msdos.batch.nt. Sul(a)MS_NewsServer wrote: > I download the same files from the same server every week. > Is it possible to use a batch file to download the files and rename them > using parameters? > tia > |