PC Review


Reply
Thread Tools Rate Thread

copy recursively

 
 
norbert
Guest
Posts: n/a
 
      7th Jul 2005

hello,
how to copy "c:\*.xls" (all xls files of "c:" recursively) to a "u:\folder"
without subfolders (only xls files)
thank you

norbert


 
Reply With Quote
 
 
 
 
William Allen
Guest
Posts: n/a
 
      7th Jul 2005
"norbert" wrote in message
>
> 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.

--
William Allen
Free interactive Batch Course http://www.allenware.com/icsw/icswidx.htm
Batch Reference with examples http://www.allenware.com/icsw/icswref.htm
Header email is rarely checked. Contact us at http://www.allenware.com/


 
Reply With Quote
 
Al Dunbar [MS-MVP]
Guest
Posts: n/a
 
      8th Jul 2005

"norbert" <pa-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
> hello,
> how to copy "c:\*.xls" (all xls files of "c:" recursively) to a

"u:\folder"
> without subfolders (only xls files)
> thank you


Suppose these two files exist on your computer: "C:\one\duplicate.xls" and
"C:\two\duplicate.xls"; which ONE of these two would you prefer to copy to
"U:\folder\"?


/Al


 
Reply With Quote
 
norbert
Guest
Posts: n/a
 
      8th Jul 2005
i just founded xxcopy freeware from http://www.xxcopy.com
excellent !!! to resolve my problem
Norbert

"norbert" <pa-(E-Mail Removed)> a écrit dans le message de news:
%(E-Mail Removed)...
>
> hello,
> how to copy "c:\*.xls" (all xls files of "c:" recursively) to a
> "u:\folder" without subfolders (only xls files)
> thank you
>
> norbert
>
>






 
Reply With Quote
 
=?Utf-8?B?UGF0IE8nU2hlYQ==?=
Guest
Posts: n/a
 
      12th Jul 2005
Norbert,

FYI - There is xcopy and robocopy with windows servers too. Robocopy is
comparable to xxcopy.

"norbert" wrote:

> i just founded xxcopy freeware from http://www.xxcopy.com
> excellent !!! to resolve my problem
> Norbert
>
> "norbert" <pa-(E-Mail Removed)> a écrit dans le message de news:
> %(E-Mail Removed)...
> >
> > hello,
> > how to copy "c:\*.xls" (all xls files of "c:" recursively) to a
> > "u:\folder" without subfolders (only xls files)
> > thank you
> >
> > norbert
> >
> >

>
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy all files from a folder to another folder, recursively pamela fluente Microsoft C# .NET 10 20th Jul 2007 06:04 PM
Copy all files from a folder to another folder, recursively pamela fluente Microsoft VB .NET 10 20th Jul 2007 06:04 PM
FTP , get directory recursively hon Microsoft Windows 2000 CMD Promt 3 30th Oct 2006 08:02 PM
howto recursively copy a folder ? Antonio Lopez Arredondo Microsoft Dot NET 1 5th Dec 2003 02:02 PM
howto recursively copy a folder ? Antonio Lopez Arredondo Microsoft Dot NET 0 4th Dec 2003 05:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 AM.