The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Need simple BAT help

    Discussion in 'Windows OS and Software' started by snickstx, Jan 7, 2011.

  1. snickstx

    snickstx Newbie

    Reputations:
    0
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    I know this is probably something really simple but I can't figure it out.

    I have a directory with about 35 folders, each full of jpgs. I want to copy the 1st jpg from each folder into 1 single new folder.

    Anybody have any ideas?
     
  2. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    I'd just run a find on the home directory for all .jpg files, then select all the results and copy them. Easier than scripting.

    Edit: nm. You said first. How do you determine the "first" file? Sorted by name? Date?