Batch file needed plz

Associate
Joined
22 Mar 2005
Posts
348
Location
Southampton
Hiya, I need a batch file that will search my \Photos folder (and all subdirectories), moving all .avi files out and in to another folder \Movies.

Anyone fancy writing me one :)
 
@Echo off

xcopy c:\photos\*.avi c:\movies /s
del c:\photos\*.avi /s

Simple way around it, it will prompt if it is overwriting (can be disabled with a switch though of course) and copy over the file structure but it'll do the job...

/s specifies sub folders on each.
 
@echo off

xcopy c:\photos\*.avi c:\movies /s
del c:\photos\*.avi /s

Simple way around it, it will prompt if it is overwriting (can be disabled with a switch though of course) and copy over the file structure but it'll do the job...

/s specifies sub folders on each.

A nooby question, but would the OP copy and paste that into CMD for it to do what it does? Or something else? I'm just curious :)
 
A nooby question, but would the OP copy and paste that into CMD for it to do what it does? Or something else? I'm just curious :)
Copy/paste into a text file, save with a .bat extension, run from command line.

Of course, that one would work just whacking the two lines into a CMD prompt, also.
 
Back
Top Bottom