Move mulitple images using a batch file

September 1, 2010 at 07:36:34
Specs: Windows 7
Hi. I need to write a batch file that moves a list of images into a new folder. I've found how to move single files but can't seem to work out how to do multiple ones.

The list of images is pretty big, about a thousand, and the folder they sit in has about 5 thousand images in total.


See More: Move mulitple images using a batch file

Report •


#1
September 1, 2010 at 11:23:40
We are going to need more information.

Are there any similarities in the names/date modified/date created/size of the files?

Or are you looking to just move 1000 files?

We aren't magic, help us to help you!

Can I put a question here?


Report •

#2
September 2, 2010 at 01:17:24
Apologies. There are no similarities in the file names. I literally just have a .txt document with a file name on every line. I need to get these files from a folder containing mass amounts of images into a new folder.

Report •

#3
September 2, 2010 at 03:57:21
Oh! I'm Sorry, I misunderstood you! Do the file names in the list have extensions (Image1.jpg) or not (Image1)?

If they do, you need to remove the extension from the move line of this script (MOVE "%%a.jpg" "N:\ew\Path\").

----

@ECHO OFF

FOR /f "tokens=*" %%a IN (FileName.txt) DO (
	MOVE "%%a.jpg" "N:\ew\Path\"
)
PAUSE

Let me know!

Can I put a question here?


Report •

Related Solutions


Ask Question