Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Help writing a vbs script

24 Jan 2012   #1
b1gd4ddy

Windows 7 Home Premium 64bit
 
 
Help writing a vbs script

Hello everyone,

First off can i just say i am new to scripting and my knowledge on the subject is less than fundamental.

I have a 3 tasks and i need 3 scripts to do it for me.

1st Task:

Find all .nfo files in a folder and all of it's sub folders, create a copy of each .nfo changing the extension to .BAK and saving it in the same directory as the original .nfo file, only with the new extension. (and do the same for all the .nfo files in all the sub-folders)


2nd Task:

Find all .nfo files in a folder and all of it's sub-folders and edit them, removing only the text between two specific tags (so <mytag>blah blah</mytag> will become <mytag></mytag> in every .nfo file in the folder and it's sub-folders) then saving them.

Note 1: The text between the tags is different in each .nfo file so a replace "xyz" with "" will not work.

Note 2: Some of the .nfo files do not contain the tags (<mytag>) at all, but will still need to be copied and have extension changed (why? see below)


3rd Task:

Sort of a restore script. It needs to first delete all .nfo files in a folder and all of it's sub folders then change the extension of all .BAK files in a folder and all of it's sub-folders to .nfo files.


Can anybody do this?

Any help would be appreciated.

I hope that is clear enough. If you have any questions, please ask me.

Many Thanks
BD


My System SpecsSystem Spec
.
24 Jan 2012   #2
b1gd4ddy

Windows 7 Home Premium 64bit
 
 

Here is an example:

<?xml version="1.0" encoding="utf-8"?>
<movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<id>tt0450259</id>
<title>Blood Diamond</title>
<originaltitle>Blood Diamond</originaltitle>
<year>2006</year>
<releasedate>08/12/2006</releasedate>
<rating>8</rating>
<votes>165,299</votes>
<mpaa>Rated R for strong violence and language</mpaa>
<certification>USA:R / UK:15 / Switzerland:14 / Switzerland:14 / Sweden:15 / Spain:18 / South Korea:18 / South Korea:15 / Singapore:NC-16 / Portugal:M/16 / Philippines:R-13 / Peru:14 / Norway:15 / New Zealand:R16 / Netherlands:16 / Malaysia:18PL / Italy:VM14 / Ireland:15A / India:A / Hong Kong:IIB / Greece:K-13 / Germany:16 / France:-12 / Finland:K-15 / Chile:TE / Canada:14A / Canada:14A / Canada:13+ / Brazil:16 / Australia:MA / Argentina:16</certification>
<genre>Adventure / Drama / Thriller</genre>
<studio>Warner Bros. Pictures</studio>
<director>Edward Zwick</director>
<credits>Charles Leavitt (writer) / Charles Leavitt (writer)</credits>
<tagline>Truth</tagline>
<outline>A fisherman, a smuggler, and a syndicate of businessmen match wits over the possession of a priceless diamond.</outline>
<plot>A story following Archer, a man tortured by his roots. With a strong survival instinct, he has made himself a key player in the business of conflict diamonds. Political unrest is rampant in Sierra Leone as people fight tooth for tooth. Upon meeting Solomon, and the beautiful Maddy, Archer's life changes forever as he is given a chance to make peace with the war around him.</plot>
<runtime>143 min</runtime>
<trailer>http://www.youtube.com/watch?v=YG_a8lw512A</trailer>
<actor>
<name>Leonardo DiCaprio</name>
<role>Danny Archer</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjI0MTg3MzI0M15BMl5BanBnXkFtZTcwMzQyODU2Mw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Djimon Hounsou</name>
<role>Solomon Vandy</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjQ2NTM4MzI4M15BMl5BanBnXkFtZTcwOTkxMjcxNA@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Jennifer Connelly</name>
<role>Maddy Bowen</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BOTczNTgzODYyMF5BMl5BanBnXkFtZTcwNjk4ODk4Mw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Kagiso Kuypers</name>
<role>Dia Vandy</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTgyNjI4MTg0N15BMl5BanBnXkFtZTYwMDQyNzkz._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Arnold Vosloo</name>
<role>Colonel Coetzee</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTY5NTI3NTA1N15BMl5BanBnXkFtZTYwMzA0NTIz._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Antony Coleman</name>
<role>Cordell Brown</role>
<thumb />
</actor>
<actor>
<name>Benu Mabhena</name>
<role>Jassie Vandy</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTgyNDYyODY5N15BMl5BanBnXkFtZTYwMzYxNzkz._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Anointing Lukola</name>
<role>N'Yanda Vandy</role>
<thumb />
</actor>
<actor>
<name>David Harewood</name>
<role>Captain Poison</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTM1OTE4MzQ3Ml5BMl5BanBnXkFtZTcwODY5ODg4Ng@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Basil Wallace</name>
<role>Benjamin Kapanay</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjE4MjI0NDU3Nl5BMl5BanBnXkFtZTYwMDYxNzkz._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Jimi Mistry</name>
<role>Nabil</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTU0MzA3MzQxMV5BMl5BanBnXkFtZTYwNDE2ODM1._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Michael Sheen</name>
<role>Rupert Simmons</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTg0MjI4NjY2M15BMl5BanBnXkFtZTcwOTgwNjQzMg@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Marius Weyers</name>
<role>Rudolf Van De Kaap</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTc3OTg5MzE1MV5BMl5BanBnXkFtZTcwNDIyMDkwMw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Stephen Collins</name>
<role>Ambassador Walker</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjAyNTE0MzM1MF5BMl5BanBnXkFtZTcwNDc3NzkzMQ@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Ntare Guma Mbaho Mwine</name>
<role>M'Ed (as Ntare Mwine)</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTMyNDg0MDUwN15BMl5BanBnXkFtZTcwMDcwNTg0Mw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Bouba Badiane</name>
<role>Tupac T-Shirt</role>
<thumb />
</actor>
<actor>
<name>Ato Essandoh</name>
<role>Commander Rambo</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTY4Nzg5NTQ1M15BMl5BanBnXkFtZTcwMTQ2MjMzMQ@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Percy Matsemela</name>
<role>Commander Zero</role>
<thumb />
</actor>
<actor>
<name>Ronnie Nyakale</name>
<role>Digger 1</role>
<thumb />
</actor>
<actor>
<name>Tony Kgoroge</name>
<role>Troop Leader</role>
<thumb />
</actor>
<actor>
<name>Nick Reding</name>
<role>British DFID Minister</role>
<thumb />
</actor>
<actor>
<name>Klemens Becker</name>
<role>German Minister</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BODEzNjgzNDA2Nl5BMl5BanBnXkFtZTcwOTY1MTYwNw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Akin Omotoso</name>
<role>Peacekeeper</role>
<thumb />
</actor>
<actor>
<name>Chiméne Costa</name>
<role>Red Cross Worker</role>
<thumb />
</actor>
<actor>
<name>Dini Nondumo</name>
<role>Mende UN Worker</role>
<thumb />
</actor>
<actor>
<name>Grant Swanby</name>
<role>UNCHR Official</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTMxMzk0MjYyN15BMl5BanBnXkFtZTcwNzM4Mjc0Mw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Tau Maserumule</name>
<role>R.U.F. Soldier #1</role>
<thumb />
</actor>
<actor>
<name>Adetokumboh M'Cormack</name>
<role>R.U.F. Trainer</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjAwNDM3NzE4M15BMl5BanBnXkFtZTcwMTI2ODU5NQ@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Martin Abdul-Jabbar</name>
<role>Guinean Guard (as Martin Abdul Jabbar)</role>
<thumb />
</actor>
<actor>
<name>Gaurav Chopra</name>
<role>French Journalist</role>
<thumb />
</actor>
<actor>
<name>Karl McMillan</name>
<role>Aussie Journalist</role>
<thumb />
</actor>
<actor>
<name>David S. Lee</name>
<role>Cockney Journalist</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMjI4NTg3OTYyMV5BMl5BanBnXkFtZTcwMDI0MzU2Ng@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Jonathan Pienaar</name>
<role>SA Cameraman</role>
<thumb />
</actor>
<actor>
<name>Sonni Chidiebere</name>
<role>Kamajoor Headman</role>
<thumb />
</actor>
<actor>
<name>Nnamdi Onyeiwu</name>
<role>Kamajoor</role>
<thumb />
</actor>
<actor>
<name>Nhlanhla Mavimbela</name>
<role>Child Soldier 1</role>
<thumb />
</actor>
<actor>
<name>Mfundo Pisani</name>
<role>Child Soldier 2</role>
<thumb />
</actor>
<actor>
<name>Phado Bahola</name>
<role>Child Soldier 3 (Indoc)</role>
<thumb />
</actor>
<actor>
<name>Thabang Mothle</name>
<role>Child Soldier 4 (Indoc)</role>
<thumb />
</actor>
<actor>
<name>Buhle Seya</name>
<role>Child Soldier 5 (Indoc)</role>
<thumb />
</actor>
<actor>
<name>Sizwe Makapela</name>
<role>Child Soldier 6 (Indoc)</role>
<thumb />
</actor>
<actor>
<name>Tyrone Keogh</name>
<role>SA Page</role>
<thumb />
</actor>
<actor>
<name>Winston Ntshona</name>
<role>Old Mende Man</role>
<thumb />
</actor>
<actor>
<name>Mduduzi Mabaso</name>
<role>Rebel 1</role>
<thumb />
</actor>
<actor>
<name>Nathaniel Ramabulana</name>
<role>Rebel 2 (as Nat Ramabulana)</role>
<thumb />
</actor>
<actor>
<name>Zenzo Ngqobe</name>
<role>Rebel 3</role>
<thumb />
</actor>
<actor>
<name>Mlungisi Hlophe</name>
<role>Rebel 4</role>
<thumb />
</actor>
<actor>
<name>Carol Behane</name>
<role>Mother at the Bridge</role>
<thumb />
</actor>
<actor>
<name>Nigel Harman</name>
<role>News Reporter</role>
<thumb />
</actor>
<actor>
<name>Clare Holman</name>
<role>News Reporter</role>
<thumb />
</actor>
<actor>
<name>Kedibone Tholo</name>
<role>Prostitute 1</role>
<thumb />
</actor>
<actor>
<name>Koketso Mojela</name>
<role>Prostitute 2</role>
<thumb />
</actor>
<actor>
<name>Irmelin DiCaprio</name>
<role>Woman at airport (uncredited) (unconfirmed)</role>
<thumb />
</actor>
<actor>
<name>Ray Donn</name>
<role>Journalist (uncredited)</role>
<thumb />
</actor>
<actor>
<name>Karen Haacke</name>
<role>Van De Kaap's Wife (uncredited)</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTgzMzUwNjI3OF5BMl5BanBnXkFtZTcwMTgzNjEzNQ@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Vanessa Haywood</name>
<role>Diplomat's Wife (uncredited)</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTkwNzg3NDQ2Nl5BMl5BanBnXkFtZTcwNzc3OTM1Mw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Dan Hirst</name>
<role>Colonel's Bodyguard (uncredited)</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BMTM0OTcxODQyN15BMl5BanBnXkFtZTcwMzYxNDU3Mw@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<actor>
<name>Cordell McQueen</name>
<role>Young mercinary (uncredited)</role>
<thumb />
</actor>
<actor>
<name>Scott Wickes</name>
<role>Journalist (uncredited)</role>
<thumb>http://ia.media-imdb.com/images/M/MV5BNDgzODAzMjg2OF5BMl5BanBnXkFtZTcwOTMxOTI3NQ@@._V1._SY275_SX400_.jpg</thumb>
</actor>
<thumb>http://cf2.imgobject.com/t/p/w185/wRamTzV6udKaMXrspxqOuo02zk0.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/9npsRgzacd2nK5DCLMCEVPb9SgN.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/lj65j3122uNguzq6J3qi3SQARiI.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/2OecVCAmUJLQIpQSv2vEFh7icTP.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/3k2lvJofI78CwJKnMtJ6Q0EkpHL.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/ud1oQjG2MH2qlJA7KK1tDMUdMk8.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/1obBv3Kj1slVBKAy78vpObWKJfg.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/jVbLvJ0TiOggZuKngQ49XSNBbrs.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/synPvJKnlxi7TAixUiEeBdLqjlr.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/8KLpokjSklV5RF0XX0g0XTRKuFL.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/07_11/2006/450259/l_450259_34c14170.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/xDhhI8k3k5mZZZfc8iSgURtlcIq.jpg</thumb>
<thumb>http://cf2.imgobject.com/t/p/w185/crwIp58NxwuGD8hKFUooz9ik1nx.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_xlg.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/07_11/2006/450259/l_450259_34c14170.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_xlg.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/07_11/2006/450259/l_450259_34c14170.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver2.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver2_xlg.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/11_04/2006/450259/l_450259_eea00768.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver3.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver3_xlg.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver4.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver4_xlg.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/09_06/2006/450259/l_450259_dc514479.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver5.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/07_10/2006/450259/l_450259_e007c1ed.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver5_xlg.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver6.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_11/2006/0450259/l_146033_0450259_37e3bfcb.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver6_xlg.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/07_12/2006/450259/l_450259_0f78591f.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver7.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver7_xlg.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver8.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_12/2006/0450259/l_149851_0450259_6342982e.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_ver8_xlg.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/09_10/2006/450259/l_450259_6c232a23.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_xlg.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_05/2006/450259/l_450259_bdbae935.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond.jpg</thumb>
<thumb>http://www.impawards.com/2006/posters/blood_diamond_xlg.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_10/2006/0450259/l_137862_0450259_397e74e2.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_01/2006/450259/l_450259_c48080b4.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_12/2006/0450259/l_149852_0450259_7a48ca98.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/11_08/2006/450259/l_450259_c815a570.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/07_10/2006/450259/l_450259_46220fcf.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_12/2006/0450259/l_149284_0450259_194518b7.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_11/2006/0450259/l_145852_0450259_087309bb.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_12/2006/0450259/l_149285_0450259_69488bd2.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_04/2006/450259/l_450259_9cf89368.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_04/2006/450259/l_450259_b9b770b7.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_04/2006/450259/l_450259_39a3bdd7.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/11_10/2006/450259/l_450259_a8942abb.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_01/2006/450259/l_450259_37216167.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/08_01/2006/450259/l_450259_4aa14eb1.jpg</thumb>
<thumb>http://www.movieposterdb.com/posters/06_10/2006/0450259/l_137117_0450259_cf6846c2.jpg</thumb>
<fanart url="http://cf2.imgobject.com">
<thumb preview="/t/p/w300/46y6EvnDveRFwtztyHVS0y2DipU.jpg">http://cf2.imgobject.com/t/p/w300/46y6EvnDveRFwtztyHVS0y2DipU.jpg</thumb>
<thumb preview="/t/p/w780/46y6EvnDveRFwtztyHVS0y2DipU.jpg">http://cf2.imgobject.com/t/p/w780/46y6EvnDveRFwtztyHVS0y2DipU.jpg</thumb>
<thumb preview="/t/p/w1280/46y6EvnDveRFwtztyHVS0y2DipU.jpg">http://cf2.imgobject.com/t/p/w1280/46y6EvnDveRFwtztyHVS0y2DipU.jpg</thumb>
<thumb preview="/t/p/original/46y6EvnDveRFwtztyHVS0y2DipU.jpg">http://cf2.imgobject.com/t/p/original/46y6EvnDveRFwtztyHVS0y2DipU.jpg</thumb>
<thumb preview="/t/p/w300/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg">http://cf2.imgobject.com/t/p/w300/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg</thumb>
<thumb preview="/t/p/w780/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg">http://cf2.imgobject.com/t/p/w780/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg</thumb>
<thumb preview="/t/p/w1280/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg">http://cf2.imgobject.com/t/p/w1280/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg</thumb>
<thumb preview="/t/p/original/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg">http://cf2.imgobject.com/t/p/original/8EDlhw9LyQFixOF5eHybr5sfM4z.jpg</thumb>
<thumb preview="/t/p/w300/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg">http://cf2.imgobject.com/t/p/w300/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg</thumb>
<thumb preview="/t/p/w780/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg">http://cf2.imgobject.com/t/p/w780/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg</thumb>
<thumb preview="/t/p/w1280/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg">http://cf2.imgobject.com/t/p/w1280/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg</thumb>
<thumb preview="/t/p/original/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg">http://cf2.imgobject.com/t/p/original/p1uqib5yKnGiUxYtyBcAzHtNLJk.jpg</thumb>
<thumb preview="/t/p/w300/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg">http://cf2.imgobject.com/t/p/w300/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg</thumb>
<thumb preview="/t/p/w780/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg">http://cf2.imgobject.com/t/p/w780/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg</thumb>
<thumb preview="/t/p/w1280/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg">http://cf2.imgobject.com/t/p/w1280/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg</thumb>
<thumb preview="/t/p/original/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg">http://cf2.imgobject.com/t/p/original/zLVQOHAJREt7HAfAAVhAvRU5KTL.jpg</thumb>
<thumb preview="/t/p/w300/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg">http://cf2.imgobject.com/t/p/w300/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg</thumb>
<thumb preview="/t/p/w780/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg">http://cf2.imgobject.com/t/p/w780/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg</thumb>
<thumb preview="/t/p/w1280/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg">http://cf2.imgobject.com/t/p/w1280/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg</thumb>
<thumb preview="/t/p/original/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg">http://cf2.imgobject.com/t/p/original/tMkGEqa2PWk8iujuGCWeYFCVFCr.jpg</thumb>
<thumb preview="/t/p/w300/iR43HnbAHUtDPHTEIygfY4937Bn.jpg">http://cf2.imgobject.com/t/p/w300/iR43HnbAHUtDPHTEIygfY4937Bn.jpg</thumb>
<thumb preview="/t/p/w780/iR43HnbAHUtDPHTEIygfY4937Bn.jpg">http://cf2.imgobject.com/t/p/w780/iR43HnbAHUtDPHTEIygfY4937Bn.jpg</thumb>
<thumb preview="/t/p/w1280/iR43HnbAHUtDPHTEIygfY4937Bn.jpg">http://cf2.imgobject.com/t/p/w1280/iR43HnbAHUtDPHTEIygfY4937Bn.jpg</thumb>
<thumb preview="/t/p/original/iR43HnbAHUtDPHTEIygfY4937Bn.jpg">http://cf2.imgobject.com/t/p/original/iR43HnbAHUtDPHTEIygfY4937Bn.jpg</thumb>
<thumb preview="/t/p/w300/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg">http://cf2.imgobject.com/t/p/w300/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg</thumb>
<thumb preview="/t/p/w780/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg">http://cf2.imgobject.com/t/p/w780/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg</thumb>
<thumb preview="/t/p/w1280/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg">http://cf2.imgobject.com/t/p/w1280/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg</thumb>
<thumb preview="/t/p/original/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg">http://cf2.imgobject.com/t/p/original/aYcEiWN3oBAMm8Zk2DP8bXnjTfB.jpg</thumb>
<thumb preview="/t/p/w300/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg">http://cf2.imgobject.com/t/p/w300/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg</thumb>
<thumb preview="/t/p/w780/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg">http://cf2.imgobject.com/t/p/w780/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg</thumb>
<thumb preview="/t/p/w1280/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg">http://cf2.imgobject.com/t/p/w1280/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg</thumb>
<thumb preview="/t/p/original/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg">http://cf2.imgobject.com/t/p/original/iBmf0OpwcTHjR3QI3XGLC5FjMkH.jpg</thumb>
<thumb preview="/t/p/w300/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg">http://cf2.imgobject.com/t/p/w300/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg</thumb>
<thumb preview="/t/p/w780/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg">http://cf2.imgobject.com/t/p/w780/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg</thumb>
<thumb preview="/t/p/w1280/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg">http://cf2.imgobject.com/t/p/w1280/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg</thumb>
<thumb preview="/t/p/original/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg">http://cf2.imgobject.com/t/p/original/fzJDfcPf2USDLKN1y0tzvT5GhlW.jpg</thumb>
<thumb preview="/t/p/w300/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg">http://cf2.imgobject.com/t/p/w300/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg</thumb>
<thumb preview="/t/p/w780/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg">http://cf2.imgobject.com/t/p/w780/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg</thumb>
<thumb preview="/t/p/w1280/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg">http://cf2.imgobject.com/t/p/w1280/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg</thumb>
<thumb preview="/t/p/original/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg">http://cf2.imgobject.com/t/p/original/iyUaatsXVqfSbXpHYTkKJSlTqqu.jpg</thumb>
</fanart>
<fileinfo>
<streamdetails>
<audio>
<channels>6</channels>
<codec>ac3</codec>
</audio>
<video>
<aspect>2.368</aspect>
<codec>xvid</codec>
<duration>143</duration>
<height>304</height>
<scantype>Progressive</scantype>
<width>720</width>
</video>
</streamdetails>
</fileinfo>
</movie>
My System SpecsSystem Spec
30 Jan 2012   #3
Neutron16

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

I have BATch scripts similar to 1st and 3rd task. I have just flipped some details for you, so

1st_script.bat in your case should be like this:
Code:
FOR /R "%~dp0" %%I IN (.) DO echo f |XCOPY /h /y "%%I\*.nfo" "%%I\*.bak"
3rd_script.bat in your case should be like this:
Code:
FOR /R "%~dp0" %%I IN (.) DO DEL /F /s /q "%%I\*.nfo" 
FOR /R "%~dp0" %%I IN (.) DO echo f |XCOPY /h /y "%%I\*.bak" "%%I\*.nfo"
Sorry, I do not have time to convert these BATch scripts to VBScripts, they should work as you wanted anyway.
I have tested them, but I would recommend you to test it yourself on some copies before applying to your movie collection.


As for 2nd script, this is not an easy two-line script with your current conditions (Note 1). I believe it would be hard to do it in VBS or batch, because a sophisticated programming language is required for tag analysis.
My System SpecsSystem Spec
.

30 Jan 2012   #4
b1gd4ddy

Windows 7 Home Premium 64bit
 
 

I have actually sorted this using PowerShell.

But thank you for your reply and your time
My System SpecsSystem Spec
Reply

 Help writing a vbs script




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Easy BCD is not writing MBR
Hi all, I am at my wits end trying to solve this so any help greatly appreciate. On my laptop I had XP Pro and decided to get and instal Win 7 (x64), on restart had the dual boot as expected. All was working fine until I needed to do a clean install of XP which after I ran Win 7 start up...
Installation & Setup
Writing in a snip
I have searched through the tutorials but cannot find how to write on a snip in a legible manner, how can I slow the writing dot down to make it readable like Brink and some of the others do in the tutorials please? Or is there an easier way of say printing something up and copying it to the...
Chillout Room
DVD Writing problem
I have a problem with an LG SuperMulti 22x drive. All the dvds i try to write with Windows 7 built in software fails when there is roughly 30s left of the burn. I tries Nero as well but the writes also fail. It is a brand new drive, is there any way to test it? I installed Windows and device...
Hardware & Devices
Fuzzy Writing
Hi All, I have windows 7 64 bit ultimate and over the last few days have noticed that the writing on any site is fuzzy. I tried different settings on the monitor and also tried updating the monitor drivers with no luck. I updated the drivers of the graphics card but again with no luck. If i...
General Discussion
No Writing Privileges??
I keep getting this message when trying to copy files into a program i use to update a game. Can anyone help me as im new to Windows 7, thanks
General Discussion
Reading and writing to HDD
Hi :) I need an app to display which programs are reading and writing to the HDD. Sorry for my bad english.
Software


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 01:15.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App