Move files by list?

G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

Is there a program that will move a list of files in, say, a .txt file from
one folder to another?

Tia

Tony
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

The "move" command could be edited into the text and then change .txt to
..bat

at the command line see

MOVE /?

Telmore wrote:
> Is there a program that will move a list of files in, say, a .txt file from
> one folder to another?
>
> Tia
>
> Tony
 
Archived from groups: microsoft.public.windowsxp.general (More info?)

"Telmore" <Telmore@discussions.microsoft.com> wrote in message
news:5D388F53-3CE8-4D18-84C7-4BD8BEBA38E9@microsoft.com...
> Is there a program that will move a list of files in, say, a .txt file
> from
> one folder to another?
>
> Tia
>
> Tony

Certainly.

At the command prompt,

for /f %i in (list.txt) do move %i destinationfoldername

There are a few tricks if you use spaces in filenames or if you want to
incorporate this activity into a batch file (for scheduling) or if you want
the process to handle the situation where the file already exists in the
destination folder.

Try asking in alt.msdos.batch.nt and give a few examples (list.txt contents,
destinationfoldername, what to do in case of error and so on...)

HTH

....Bill