Req: from file list to numbered file names?

  • Thread starter Thread starter Thorsten Duhn
  • Start date Start date
T

Thorsten Duhn

Hello,

I just got asked and don't know the answer. Is there a way
(one of these file renamers for example) to take a text file
with a list of file names (only filenames, all in the same
folder) and rename all files adding a number at the beginning
in the order of apperance in the list. First line in list gets
number 001 added etc.

A specific solution for .m3u playlists would be best of course,
because that's the problem...

Thanks,
Thorsten
 
Thorsten said:
I just got asked and don't know the answer. Is there a way
(one of these file renamers for example) to take a text file
with a list of file names (only filenames, all in the same
folder) and rename all files adding a number at the beginning
in the order of apperance in the list. First line in list gets
number 001 added etc.

IrfanView (the universal problem solver) ;)
A specific solution for .m3u playlists would be best of course,
because that's the problem...

Disagree. *IMO*, other things being equal, general solutions are
preferable. ;)

IrfanView's batch rename dialog has a show all file types option. I just
did a test run - worked fine with a group of mp3 files. I think it will
rename .m3u files *AND* anything else you care to throw at it.

Susan
--
Posted to alt.comp.freeware
Search alt.comp.freeware (or read it online):
http://www.google.com/advanced_group_search?q=+group:alt.comp.freeware
Pricelessware & ACF: http://www.pricelesswarehome.org
Pricelessware: http://www.pricelessware.org (not maintained)
 
Hello,
IrfanView (the universal problem solver) ;)

IrfanView's batch rename dialog has a show all file types
option. I just did a test run - worked fine with a group of
mp3 files. I think it will rename .m3u files *AND* anything
else you care to throw at it.

this has the problem that my files do not contain full path,
they only have the filename. The text list IrfanView requires
does need the full path of the files. Everything else is as I
need it.
Disagree. *IMO*, other things being equal, general solutions are
preferable. ;)

Sorry, but there are specific extensions to .m3u files storing
information in additional lines (starting with #). This is
called EXTM3U and is optional, but with .m3u specific software
I can work with my .m3u files without altering them first
(removing extended information). Most apps like Winamp and
others always include EXTM3U on saving .m3u playlists. As you
can see a general solution may fail on most .m3u files.
Therefore I would prefer a specific solution as it safes me
time...

Regards,
Thorsten
 
Thorsten said:
Hello,


this has the problem that my files do not contain full path,
they only have the filename. The text list IrfanView requires
does need the full path of the files. Everything else is as I
need it.
Sorry, but there are specific extensions to .m3u files storing
information in additional lines (starting with #). This is
called EXTM3U and is optional, but with .m3u specific software
I can work with my .m3u files without altering them first
(removing extended information). Most apps like Winamp and
others always include EXTM3U on saving .m3u playlists. As you
can see a general solution may fail on most .m3u files.
Therefore I would prefer a specific solution as it safes me
time...

My bad, another failure to communicate. I added the files in the order I
wanted them and then renamed them - no text list involved.

I don't think you need to remove the extended information. I just did
another test with the .mp3 files - added #EXTM3U to a couple of files
(xxxxxxx.mp3#EXTM3U etc.) - the renaming still worked.

I'm hoping we're on the same wave length now. . . ;) and that this
solution works.

Susan
--
Posted to alt.comp.freeware
Search alt.comp.freeware (or read it online):
http://www.google.com/advanced_group_search?q=+group:alt.comp.freeware
Pricelessware & ACF: http://www.pricelesswarehome.org
Pricelessware: http://www.pricelessware.org (not maintained)
 
Hello,
My bad, another failure to communicate. I added the files in the
order I wanted them and then renamed them - no text list involved.

I don't think you need to remove the extended information. I just
did another test with the .mp3 files - added #EXTM3U to a couple
of files (xxxxxxx.mp3#EXTM3U etc.) - the renaming still worked.

I'm hoping we're on the same wave length now. . . ;) and that
this solution works.

I don't know, what you tested, the EXTM3U is always a seperate
line, not added at the end of the line, like your example shows.

But that does not change the main problem, that IrfanView needs
the full path to the file, it does not work on filenames only.
For that reason some kind of manipulation to the available .m3u
is ALWAYS needed (add current path, maybe remove EXTM3U etc.).

By now I collected a couple of steps, what to do in PSPad, some
regular expressions and stuff, with a resulting batch, which is
as much work, as every other combination including IrfanView,
only without IrfanView.

It seems there is no easier solution by now :-(

Regards,
Thorsten
 
Thorsten said:
I don't know, what you tested, the EXTM3U is always a seperate
line, not added at the end of the line, like your example shows.

But that does not change the main problem, that IrfanView needs
the full path to the file, it does not work on filenames only.
For that reason some kind of manipulation to the available .m3u
is ALWAYS needed (add current path, maybe remove EXTM3U etc.).

I have a feeling we're still failing to communicate. . . I'm
*navigating* to the file directory.

The steps I used are below - please check steps 6 and 7 first:

1. open IrfanView
2. select File menu/
Batch conversion/rename
3. select "batch rename"
4. select "set rename options"
Input/use
"name pattern" = ###$N
"starting index" = 001
"increment" = 1
and select "rename original/input files" (or whatever suits you)
close/exit from the options menu

5. Select "files of type" = All files (*.*) then navigate to the folder
the files are in.

6. use the "add all" button (not the Load TXT button) and then (if
necessary) use the "move up" and "move down" buttons to rearrange the
files in the proper order.

7. "Start"

------
By now I collected a couple of steps, what to do in PSPad, some
regular expressions and stuff, with a resulting batch, which is
as much work, as every other combination including IrfanView,
only without IrfanView.

It seems there is no easier solution by now :-(

I haven't quite given up on IrfanView because the alternatives do look
like more work.

fingers crossed. . .

Susan
--
Posted to alt.comp.freeware
Search alt.comp.freeware (or read it online):
http://www.google.com/advanced_group_search?q=+group:alt.comp.freeware
Pricelessware & ACF: http://www.pricelesswarehome.org
Pricelessware: http://www.pricelessware.org (not maintained)
 
Hello,
I have a feeling we're still failing to communicate. . . I'm
*navigating* to the file directory. [...]

6. use the "add all" button (not the Load TXT button) and then
(if necessary) use the "move up" and "move down" buttons to
rearrange the files in the proper order.

sorry, but it is my wish to avoid manual reorder in IrfanView,
as I already have a source defining the correct order, the .m3u
file.

Your solution is not what I'm looking for. I thought I made my
request clear in my initial post:
take a text file with a list of file names [...] and rename
all files adding a number at the beginning in the order of
apperance in the list.

Manual reordering is just to much work in this situation.

Regards,
Thorsten
 
Thorsten said:
by luck I found the solution to the problem, an file copier,
that copies in .m3u referenced files to another folder and
adds numbers in correct order (optional).

http://www.arnebrachhold.de/2006/01/08/m3ucopier-mp3-copy-tool

Hooray! :) :) :)
Unfortunately dotNET.

Susan
--
Posted to alt.comp.freeware
Search alt.comp.freeware (or read it online):
http://www.google.com/advanced_group_search?q=+group:alt.comp.freeware
Pricelessware & ACF: http://www.pricelesswarehome.org
Pricelessware: http://www.pricelessware.org (not maintained)
 
IrfanView (the universal problem solver) ;)
[...]
this has the problem that my files do not contain full path,
they only have the filename. The text list IrfanView requires
does need the full path of the files. Everything else is as I
need it.

IrfanView does *not* need the path if it treats the directory, which
contains the files to be renamed, as current directory. Just open
*any* file (which IrfanView supports) from that directory before
opening the Batch Rename dialog. Even the text file containing your
rename list will do, because IrfanView opens text files without
problems.

Besides: Adding an unitary Path to the beginning of every line of
a text file is a very simple RegEx for e.g. Notepad++:
Search: ^(.*)$
Replace: c:\Pictures\\1

The search term finds from beginning of the line "^" to the end
of the line "$" any char "." zero or more times "*". The string
matching inside the parenthesis will be copied to the replace
string on position "\1" (replacing these 2 chars).

So you quite easily could change the file list to a full-path one...

BeAr
 
Back
Top