I have a pretty extensive directory structure:
c:\foo
\foo\1
\foo\1\doc1
\foo\1\doc2
\foo\2
\foo\2\doc1
\foo\2\doc2
...
\foo\10\docX
I want to move (not just copy) all files with .txt extention to a another directory c:\textfiles.
I'd like to do that via command line (the regular one, not Powershell), possibly in a batch file.
I've tried the move command but it only seems to work on files in the current directory. I've also tried xcopy, but it doesn't delete files on the source after the copy is complete.
No comments:
Post a Comment