|"As for the question 2, can I just ask you about the syntax of search all file extension? is it correct?|
for /f "usebackq" %%i in (`findstr /E /I /R "\.*.$" %TEMP%\tempfile%2""
That will basically pick up everything with a dot, for file extensions I would use:
findstr /e /r "\..*."
But it can still pickup false positives.
"as for add property, I found this script to add every file svn:needs-lock property:
FOR /R E:\BitNamiTracRepository %%v in (*.*) do svn propset svn:needs-lock yes %%~fv
I need to modify it so that it fits my purpose. I do not understand %%v means and %%~fv."
I suggest you read "for /?"
for /r - Iterates over every subdirectory of the directory(in this case E:\BitNamiTracRepository) specified and does the command after do.
%%v - this is just the variable that is being used, in this case it will hold each filename once. it will change every time the loop iterates.
%%~fv - The ~f is a modifier to the variable that means it will expand to a fully qualified file name.
in (*.*) - this means every file(except hidden files, ect.) will
svn propset svn:needs-lock yes %%~fv - the command that will be executed with every filename(in place of %%~fv).
Batch Variable how to