Re: Batch/ automatic copy & move of files




"Astrofin" <Astrofin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EF7EA346-93E4-4F6B-8FDE-5C1385655AB2@xxxxxxxxxxxxxxxx
I am trying to selectively move a large number of files which meet certain
filename criteria from folders and subfolders to a new destination.

For example copy all files with the name "*_site.xls" from folder "Data"
and
all subfolders to a new folder "Sites".

"Data" contains 150 subfolders and numerous files, so I am keen to
automate
this process. What is the best way to accomplish this- DOS? VBA? Software?

I'm using Vista, though have access to XP, and the files are on network
drives.

Grateful for any suggestions, thank you for your time.

You'll have a hard time copying these files in DOS, simply because
there is no DOS under Vista. However, you could use a Command
Prompt and type these simple commands:

xcopy /s /d /y /c "c:\Data\*_site.xls" "C:\Sites\"
del /s "c:\Data\*_site.xls"

If this takes too much time then you could use xxcopy.exe to move
your files. It has a "move" switch. You can download xxcopy from
a number of sites.

Alternatively, have a look at the "move" command under Vista. Maybe
it's become a little smarter so that it will move whole directory
structures.
The usual method is to type move /? at the Command Prompt.


.



Relevant Pages

  • Re: chkdsk /r
    ... command will transfer to a low-level command processor which will execute the chkdsk command. ... Control will return to Vista which will complete its boot sequence. ... By the way, if you want to do chkdsk on anything other than the Vista system volume, you will have to issue a change disk command before starting chkdsk: At the command prompt, type the letter of the desired drive followed by:. ...
    (microsoft.public.windows.vista.file_management)
  • Re: List of Files and Folders
    ... Maybe that's different in Vista, ... This is very nice little command to have. ... XP Pro. ... Open Command Prompt and run: ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: chkdsk /r
    ... command will transfer to a low-level command processor which will execute the chkdsk command. ... Control will return to Vista which will complete its boot sequence. ... By the way, if you want to do chkdsk on anything other than the Vista system volume, you will have to issue a change disk command before starting chkdsk: At the command prompt, type the letter of the desired drive followed by:. ...
    (microsoft.public.windows.vista.file_management)
  • Re: chkdsk /r
    ... command will transfer to a low-level command processor which will execute the chkdsk command. ... Control will return to Vista which will complete its boot sequence. ... By the way, if you want to do chkdsk on anything other than the Vista system volume, you will have to issue a change disk command before starting chkdsk: At the command prompt, type the letter of the desired drive followed by:. ...
    (microsoft.public.windows.vista.file_management)
  • Re: List of Files and Folders
    ... Recently I learned that in Vista a text file can be generated from the Command Prompt that will list All Subfolders and Files within a Folder. ...
    (microsoft.public.windowsxp.help_and_support)

Loading