hello,
how to copy "c:\*.xls" (all xls files of "c:" recursively) to a "u:\folder"
without subfolders (only xls files)
thank you
Try:
Lines that don't begin with two spaces have wrapped accidentally
====Begin cut-and-paste (omit this line)
@ECHO OFF
FOR /R C:\ %%F IN (*.XLS) DO (
REM To execute (instead of view) command, remove ECHO/{demo} below
ECHO/{demo}COPY "%%F" "U:\%%~nxF"
)
====End cut-and-paste (omit this line)
Simulated Win2000 for study/demo use. Cut-and-paste as Batch text file.
Batch file troubleshooting:
http://www.allenware.com/find?UsualSuspects
Note: In the Batch file shown, some commands generated are merely
ECHOed, not executed. This is so that you can see them, and judge
whether or not commands you see are indeed doing exactly what you
want. When you are satisfied with the inactive Batch commands you
see ECHOed with a "{demo}" prefix (to make it clear that they are
NOT being executed), remove the ECHO/{demo} to activate commands.
These commands will do nothing until this ECHO/{demo} is removed.