Help writing a vbs script

b1gd4ddy

New Member
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 Computer

Back
Top