How do I create folder from file name and move files into folder?
问题 I need a windows batch file to create a folder based on part of a file name (the part before an underscore) and move any files that start with the folder name into the folder. I'm not familiar with windows batch files. I've googled and tinkered a solution which works except that I cannot substring the file name at the underscore. (Yes there are a few similar threads but nothing I could use to exactly answer my question) FWIW my unsuccessful solution: @ECHO OFF setlocal enabledelayedexpansion