LogFAQs > #877152962

LurkerFAQs, Active DB, Database 1 ( 03.09.2017-09.16.2017 ), DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicWould 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 way

for /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.
---
... Copied to Clipboard!
Topic List
Page List: 1