Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,321 of 68,980    |
|    boringkids@gmail.com to All    |
|    Batch file to sort Anime    |
|    14 Oct 18 07:41:28    |
   
   Am working a batch to sort the series of anime video according to the title.   
      
   Here's one working script i manage to create.   
      
   However it only works if the filename have only 1 eg. "ABCDEDG - 01.mkv"   
   If the filename with "ABCDEDG - HIJKLMN - 01.mkv" it only create ABCDEDG   
   folder instead and move the titles.   
      
   Is there any method to sort this?   
      
   --------------------------------------------------------------------   
   @Echo off   
   PushD .\   
   For %%A in (*-*.mkv) do For /F "tokens=1delims=-" %%B in ("%%A") Do (   
    If Not exist "%%B" MD "%%B"   
    Move "%%A" "%%B"   
   )   
   PopD   
   --------------------------------------------------------------------   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca