Lets say I have posts sorted in individual folders with a word document & jpg inside.

What would be the best way to sort that into a csv for import. I assume some excel script or such.

Any suggestions would be helpful


  • 1
    Sorting folders of .doc and .jpg files into CSV file(s) looks like some fairly heavy lifting to me. What do you have to work with? Bash shell? Python? Perl? PHP? Java? What? Whatever it is it is unlikely to be WordPress.
    – s_ha_dum
    Aug 28, 2013 at 0:37

1 Answer 1


simple batch file would do that:

DIR %1 /B /S >files.csv

Save as a bat file and place it in the root directory.

Run the bat and will output directories and file names to files.csv same location as the bat file.

  • Your answer makes assumptions about the operating system in use. Please state the caveats clearly.
    – s_ha_dum
    Nov 9, 2013 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.