topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 4:34 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: create Files from a file list (for Renamer test)  (Read 6490 times)

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,149
    • View Profile
    • Donate to Member
IDEA: create Files from a file list (for Renamer test)
« on: September 28, 2005, 06:15 AM »
For testing renamer and regex tools
i need often temp-files to play with.

So i had 1. an text file with a lot of  file names
filelist.txt:
...
06 Jeep Purple - Snake off the Water.mp4
07 Foo Flighters - Monkey Brench.mp4
08 Grave  Dogger  -  Heavy Metal breakdown.mp4
09 Halloqueen - Heavy Metal is t Law.mp4
...

2. an "Dummy.txt" file as base for the new file

and 3. a little AHK script to "generate" new files every day new.

FileGen.ahk
FileSelectFile, vDateiListe,,,DateiListe laden

vZahl = 0
Loop
{
   vZahl += 1
   FileReadLine, vLine, %vDateiListe%, %vZahl%
   
   if ErrorLevel <> 0
      break

FileCopy,  Dummy.txt, %vLine%
}

MsgBox, Das Ende der Liste wurde erreicht (Oder es gab ein Problem)
return

Maybe this is for interrest for someone
and maybe one {skrommel ?  :) } would want to improve this,... feel free to do so.