How to move only some file
Posted: 09 Aug 2010 03:30
Hello,
I wanna move some file that the name is not "*.new" and I wrote this script
There's some other elegant method to do the same?
Thanks in advance
I wanna move some file that the name is not "*.new" and I wrote this script
Code: Select all
Dir /b C:\input\* > C:\a\list.txt
For /F %%i in ('findstr /v "new" C:\a\list.txt') do move C:\input\%%i C:\output
There's some other elegant method to do the same?
Thanks in advance