Need Move batch code for sequence files.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
kreesh
Posts: 1
Joined: 14 Jan 2014 08:46

Need Move batch code for sequence files.

#1 Post by kreesh » 14 Jan 2014 09:03

Hi everyone,

I hav 1000 jpeg files with numbered 1-1000. I need to move 1.jpeg-200.jpeg into a folder. wht is the commmand for batch move (how to specify sequence or range)

penpen
Expert
Posts: 2009
Joined: 23 Jun 2013 06:15
Location: Germany

Re: Need Move batch code for sequence files.

#2 Post by penpen » 14 Jan 2014 09:25

It depends on your situation, what is the best to do, you could do domething like that:

Code: Select all

for /L %%f in (1,1,1000) do echo move "%%~f.jpeg" target
If that is what you need, then remove the echo in the above line.

penpen

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Need Move batch code for sequence files.

#3 Post by foxidrive » 14 Jan 2014 12:23

Change the 1000 to 200 if you only want to copy 1 to 200

Post Reply