Yes thanks, the only thing is I do not even know where the info is coming from I have jsut been given the text files and been told to sort it out. I have asked about the source of the info but the person who passed it on to me does not know.
Thanks amyway
So basically
I have a folder that contains files say 100 and they all have different question asked which is in the first line so e.g
One file will have questions like what is your name|age|eye color
2nd file what is your cat name|were do you work
3rd file were do you live|what is your address...
Sorry ignore the question above as this can not work as the files are not the same, what I would need to do is because each file has question headings as the first line i need to do a match based on the file first line and if it is a match open if it is not then move to the next file. Every time...
Hi Guys,
Need your help once again,
I have a script that runs fine now but the files it uses I need to change the name as at the moment the user will only put in the batch number but the file name also has the question number as part of the file name. I would like to search folders based on the...
Thanks I tried using Tsuji way because I also need to have objTextFile.ReadAll if it is the first file and to skip a line if any other file after that as i need to get the header of the first file. I get an error when i added the above code.
this is where I added the new line.
const...
I have this script that works fine but the only problem is every time I run the script it appends the same data to the end I would like the results to overwrite the reults currently in the second folder.
Const ForAppending = 8, ForReading = 1, ForWriting = 2
set files =...
Thanks Tsuji
You desreve a star for that.
That works fine now, The only problem is every time I run the script it appends the same data to the end I would like the results to overwrite the reults currently in the second folder.
I will post this problem in the vbs forum as you suggested.
Hi,
I am not sure where I am going wrong, I have written a script that opens, reads a text file then adds the contents to a text file in another folder. The problem I am having is the first folder has several text files and I want to loop through each text file and copy the contents of each one...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.