I have written the following code and am trying to copy all the files to the location. The following line works when I paste it on cmd
but it doesn't work in the batch file:
for %I in (*.m) do (copy /Y %I "%appdata%\Math\include")
pause
Kindly, let me know what I am missing?
I have tried to follow the answers from here: Can I copy multiple named files on the Windows command line using a single "copy" command?
But no use to me. Please share your suggestions.