I need a .bat file which upon clicking it will cut all .xls and .doc extension file available on my D, E & F drive and paste at C:\. Thereafter run another .bat file say xyz.bat. Can someone provide the .bat file i need?
@echo off
for %%a in (D:\*.doc,E:\*.doc,F:\*.doc,D:\*.xls,E:\*.xls,F:\*.xls) do (
move %%a C:\
)
call xyz.bat
pause
Thanks M2G. But there are folders inside folders where the .xls and .doc files reside. Will you provide the script to run your .bat file automatically at a specified date say Sept' 12, 2011?
Out of curiosity, why do you want to do this? It sounds rather suspicious but presumably your explanation will clarify.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |