DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

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

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
IDEA: create Files from a file list (for Renamer test)
« on: September 28, 2005, 11: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:
Quote
...
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
Code
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.
Greetings, Stefan.

Original address: https://www.donationcoder.com/forum/index.php?topic=1030.0