download files using a batch file?

  • Thread starter Thread starter Sul@MS_NewsServer
  • Start date Start date
S

Sul@MS_NewsServer

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
 
That's not what you asked. You asked 'can a batch file do this'?

If you want help writing batch files, a newsgroup for Windows XP is not
where you're going to find batch file experts.
 
Well, look what the cat dragged in. If it isn't Patrick Christopher
Butts, alias pcbutts1, alias The Real Truth MVP, who is neither an MVP
nor 'the real truth'.

Patrick is well-known in these newsgroups for pretending to be an MVP
(he's not); urging unsuspecting newbies to use 'his' software (which
he's stolen from the original authors and patched to harm your
computer); and posting links to his filthy pornography in news posts.
 
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.
 
thanks for the link

The Real Truth MVP said:
Leonard Grey is a troll who cannot fix your system. The guy is an idiot. If
you tell him the sky is
purple he will believe it because he is too stupid to look up and see it for
himself.
See if this helps
http://www.chami.com/tips/windows/062598W.html


--
The Real Truth http://pcbutts1-therealtruth.blogspot.com/
*WARNING* Do NOT follow any advice given by the people listed below.
They do NOT have the expertise or knowledge to fix your issue. Do not waste
your time.
David H Lipman, Malke, PA Bear, Beauregard T. Shagnasty, Leythos.
 
Back
Top