Syntax error on running a batch file to replace files
Posted
by
Ralph
on Super User
See other posts from Super User
or by Ralph
Published on 2012-11-20T16:28:10Z
Indexed on
2012/11/20
17:04 UTC
Read the original article
Hit count: 246
ms-dos
I have a batch file intended to replace all instances of tracking.js within a folder/sub folders.
FOR /R "D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\Version1.2\" %%I IN (tracking.js*) DO COPY /Y "D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\tracking.js" %%~fI
When this is run I get the following syntax error
C:>COPY /Y "D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\track ing.js" D:\Virtual Servers (Testing)\CourseWare Master\Shared\Jenison\Version1.2 \SHAPERS_COMBINED\Smarter Communications\WhatisInfluencing\script\Tracking.js The syntax of the command is incorrect.
Ideas please?
© Super User or respective owner