G
gerryR
Hi All.
I'm not sure this is possible, I think it is but have been trying so many
thing I'm starting to think I'd be quicked doing it manually.
Basically I need to create 100s of .htm files (obviously its fine if there
..txt and I can rename) and would like the source of both the content of the
files and the name of the files to come from a few .txt files.
1st part I'm trying to rename a folder of .htm files using the contents of a
txt file I have.
So say I have 3 files in a folder (1.htm, 2.htm, 3.htm) and a txt file
called names.txt containing
full namea
full nameb
full namec
I'd like to rename the files so they become (full namea.htm, full nameb.htm,
full namec.htm)
I've tried
rename *.htm < names.txt
but just get syntax errors. Is this even possible? Can anyone help?
I'll get to the 2nd part if anyone can solve this, I apologise as the
message it way to big already!
thanks for any help anyone can provide (even a "no it can't be done" would
be better than nothing
gerryR
I'm not sure this is possible, I think it is but have been trying so many
thing I'm starting to think I'd be quicked doing it manually.
Basically I need to create 100s of .htm files (obviously its fine if there
..txt and I can rename) and would like the source of both the content of the
files and the name of the files to come from a few .txt files.
1st part I'm trying to rename a folder of .htm files using the contents of a
txt file I have.
So say I have 3 files in a folder (1.htm, 2.htm, 3.htm) and a txt file
called names.txt containing
full namea
full nameb
full namec
I'd like to rename the files so they become (full namea.htm, full nameb.htm,
full namec.htm)
I've tried
rename *.htm < names.txt
but just get syntax errors. Is this even possible? Can anyone help?
I'll get to the 2nd part if anyone can solve this, I apologise as the
message it way to big already!
thanks for any help anyone can provide (even a "no it can't be done" would
be better than nothing
gerryR