KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have following in a cmd batch file: for /f %%l in (%2) do (for %%f in (%%l) do copy "%%f" %1)) note : this script basically does is read a text file that contains semicolon delimited txt file whose path is given by %2(eg which contains c:\test1\file1.cs;d:\file2.js) and copy the files to destination folder specified by %1. I need to replace the %1 parameter's string value of x (which is also passed to batch file e.g. %3 ) with %4 value which is also passed as parameter to batch file. e.g.: if %1 = 'test replace x with y' %3=x %4=y so the output should be 'test replace y with y' How can I achieve this using Windows CMD batch interpreter?
Tags (comma-separated)
Save Edits
Cancel