I recently needed to move around a bunch of files in TFS to a new directory structure.
Doing that from within the Visual Studio 2010 IDE was tedious, so I wrote a batch-file like below.
This batch file should also work for Team Foundation System 2005 and 2008.
Notes:
- %~dp1 fetches the drive + directory from %1.
- %~nx1 fetches the filename + extension from %1.
- relative target directories work better than absolute ones
- the batch-file assumes it executes with the current directory is %sourceDirectory%





