CMD problem

Hi

How can I open folders all .jpg files in the same time with CMD?
All files start with different name, like 1.jpg 2.jpg 3.jpg...

dir *.jpg shows folders all jpg files but start *.jpg doesnt work.

Could somebody help me
Could do it quite easily with a batch script.

multiOpen.bat
1
2
3
4
@echo off
for /f "tokens=*" %%a in (%1) do (
start %%a
)


Then create a list of image files and pass them into the script.

To create a list of jpgs, use this command:
dir /a-d /b *.jpg > jpgs.file


Then call the multiOpen script passing in your list.
multiOpen.bat jpgs.file


You might run into issues if any of the paths contain spaces.
Last edited on
Thanks:)
Topic archived. No new replies allowed.