3

I have

  for /R "C:\path" %f in (_svn) do RMDIR /S /Q "%f" 

to remove the _svn folders from c:\path and this works if I paste it into the cmd window, but when run from a bat file it says f was not expected at this time.

Permissions? funk-a-tron? wassup?

1 Answer 1

4

you have to use %%f in .cmd / .bat files to make that work, see here:

Use %variable to carry out 'for' from the command prompt.
Use %%variable to carry out the 'for' command within a batch file
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .