Skip to content

Instantly share code, notes, and snippets.

@ex
Created January 26, 2010 21:35
Show Gist options
  • Select an option

  • Save ex/287268 to your computer and use it in GitHub Desktop.

Select an option

Save ex/287268 to your computer and use it in GitHub Desktop.
@echo off
SET count=1
#FOR /f "tokens=*" %%G IN ('dir /B /A-D') DO (
FOR /f "tokens=*" %%G IN ('dir *.as /B') DO (
call :move_svn %%G target_dir
)
GOTO :eof
:move_svn
echo %count%: %1 %2
svn move %1 %2/%1
set /a count+=1
GOTO :eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment