Topic List | Page List: 1 |
---|---|
Topic | Would this be easy for a novice to code? |
Sahuagin 04/13/17 9:48:22 PM #15: | actually, the ('type data.txt') can be reduced to just (data.txt) , no reason to run the type command for will already just process a text file that wayfor /f "tokens=1,2 delims= " %a in (data.txt) do rename %a %b.jpg note, though that windows might not sort files numerically, even if you number them 1, 2, 3, 4, 5, etc. they will still be sorted alphabetically, where "10" is alphabetically before "2", etc. testing this out, doesn't seem to be an issue in windows 7, which is not something I knew. in the event that you had that problem, you can get around it by using leading zeros. --- The truth basks in scrutiny. http://i.imgur.com/GMouTGs.jpg http://projecteuler.net/profile/Sahuagin.png ... Copied to Clipboard! |
Topic List | Page List: 1 |