Search found 3 matches

by trclocke
30 Jun 2014 12:56
Forum: DOS Batch Forum
Topic: Why would this batch have issues when filenames have spaces?
Replies: 9
Views: 6821

Re: Why would this batch have issues when filenames have spa

Compo wrote:There is also appears to be no need for the /Y switch with the COPY command!


The user would have to manually confirm each file replacement without it, unless i'm missing something.
by trclocke
29 Jun 2014 16:30
Forum: DOS Batch Forum
Topic: Why would this batch have issues when filenames have spaces?
Replies: 9
Views: 6821

Re: Why would this batch have issues when filenames have spa

Antonio, your command should not have the path added to the target: for %%a in ("%pathy%\*.png") do COPY /Y "%startfile%" "%%a" (I noticed that myself, surprisingly Ah, I see. For one thing, I had no reason to define %%a as the file without the path, then tie it back i...
by trclocke
29 Jun 2014 02:36
Forum: DOS Batch Forum
Topic: Why would this batch have issues when filenames have spaces?
Replies: 9
Views: 6821

Why would this batch have issues when filenames have spaces?

I added quotes where necessary - at least as far as I can tell. Can someone take a look at this and see where I'm going wrong? There's more to it of course (user prompts for the variables, etc) but this is the meat of it. This line takes the source file %startfile% and uses it to replace all .png f...