1.

Solve : Copy/replace batch file?

Answer»

Hi all,
I'm TRYING to write a batch file that copies a file from a network location, and pastes it to a local directory. I've tried this, but it doesn't seem to work:

@echo off
copy \\servername\foldername\subfoldername\filename C:\Program Files\foldername

should copy from SERVER location and paste to c:\ location... but doesn't seem to.

Thanks!
MitchHave you tried

copy "\\servername\foldername\subfoldername\filename" "c:\Program Files\foldername\"

?
Yup that was it. Didn't know I needed the quotation MARKS...

Thanks!!!!



Discussion

No Comment Found