Phreeneazie
Technical User
Hi,
as some of you will already know, I don't have much knowledge with VBScript....
I am in need of a script that will take a file, open it and on the top line of that file, add the name of the file to it. For instance...
The name of the file is "DTF0001.txt" and the file might contain:
Line1: xxxxxxxxxxxxxx
Line2: xxxxxxxxxxxxxx
Line3: xxxxxxxxxxxxxx
Line4: xxxxxxxxxxxxxx
etc...
I need to have the file look like this:
Line1: DTF0001.txt
Line2: xxxxxxxxxxx
Line3: xxxxxxxxxxx
Line4: xxxxxxxxxxx
Line5: xxxxxxxxxxx
etc.
Also, the file will change daily - usually it will increment by 1 - DTF0001.txt; DTF0002.txt so ideally, I would need to pick up DTF*.* There wouldn't be a problem of picking up old files, because once used it will be automatically moved into an Archive directory.
Can anyone help? Thanks to all!
as some of you will already know, I don't have much knowledge with VBScript....
I am in need of a script that will take a file, open it and on the top line of that file, add the name of the file to it. For instance...
The name of the file is "DTF0001.txt" and the file might contain:
Line1: xxxxxxxxxxxxxx
Line2: xxxxxxxxxxxxxx
Line3: xxxxxxxxxxxxxx
Line4: xxxxxxxxxxxxxx
etc...
I need to have the file look like this:
Line1: DTF0001.txt
Line2: xxxxxxxxxxx
Line3: xxxxxxxxxxx
Line4: xxxxxxxxxxx
Line5: xxxxxxxxxxx
etc.
Also, the file will change daily - usually it will increment by 1 - DTF0001.txt; DTF0002.txt so ideally, I would need to pick up DTF*.* There wouldn't be a problem of picking up old files, because once used it will be automatically moved into an Archive directory.
Can anyone help? Thanks to all!