2012-01-03, 01:50
I have a text file exported from the movie collectorz program and I want to add my DVD collection through stub files. I found this code and modified it to give me the files.
now Im realizing I want to create a directory named from the list and place the created file into that directory. also I want to add the xml into the file -
where "moviename" is taken from the aaa.txt file this is way beyond my tiny brains ability so I need help....LMAO
the text file looks like this...
The Adjustment Bureau (2010)
Alien (1979)
Aliens (1986)
Alien³ (1992)
Alien:_Resurrection (1997)
Alien Vs. Predator (2004)
Aliens Vs Predator - Requiem (2007)
Apollo 18 (2011)
Avatar (Extended_Cut) (2010)
Back To The Future (1985)
Back To The Future II (1989)
Back To The Future III (1990)
and I want to end up with...
a Dir named "The Adjustment Bureau (2010)" with a file named "The Adjustment Bureau (2010).DVD.Disc" in it and the file to contain the xml code from above with "The Adjustment Bureau (2010)" as the moviename.
I have spent hours trying different things and all have failed (and failed well I might add...LOL) I have almost 3,000 DVDS and would hate to have to do this by hand. and I'm sure others could use something similar
is a bat file the best thing to use? would vbs be better? anyone know of a program that will do this? any help or thoughts welcome.
Code:
for /f "tokens=*" %%l in (aaa.txt) do echo %%l > "%%l.dvd.disc"
now Im realizing I want to create a directory named from the list and place the created file into that directory. also I want to add the xml into the file -
Code:
<discstub>
<message>%moviename% is located in the DVD rack</message>
</discstub>
where "moviename" is taken from the aaa.txt file this is way beyond my tiny brains ability so I need help....LMAO
the text file looks like this...
The Adjustment Bureau (2010)
Alien (1979)
Aliens (1986)
Alien³ (1992)
Alien:_Resurrection (1997)
Alien Vs. Predator (2004)
Aliens Vs Predator - Requiem (2007)
Apollo 18 (2011)
Avatar (Extended_Cut) (2010)
Back To The Future (1985)
Back To The Future II (1989)
Back To The Future III (1990)
and I want to end up with...
a Dir named "The Adjustment Bureau (2010)" with a file named "The Adjustment Bureau (2010).DVD.Disc" in it and the file to contain the xml code from above with "The Adjustment Bureau (2010)" as the moviename.
I have spent hours trying different things and all have failed (and failed well I might add...LOL) I have almost 3,000 DVDS and would hate to have to do this by hand. and I'm sure others could use something similar
is a bat file the best thing to use? would vbs be better? anyone know of a program that will do this? any help or thoughts welcome.