In-Depth Explanation of Problem:
I'm trying to automate a process on my computer and having some difficulty. Each day, I'm emailed a zip file that contains a txt file. I have a script in place that automatically takes the attachment and dumps it into a local directory.
Now, I'm trying to figure out how I can get the contents of the txt file from the directory and append it to a "master file". So basically, how it works now is I have an archive emailed to me each day of [TODAY'S_DATE].zip. A script moves that archive to a folder. I then have a .bat file that extracts the contents to a folder named [TODAY'S_DATE] and moves the archive to a folder titled "Completed". I need to know how to take the text out of the file as it is extracted and dump it into a "Master.txt" file that will continuously get larger.
This would avoid the need of extracting the files to their own directories and manually copying the text from them and into the master file.
- Using Windows 7
- Using 7zip Command Line for extraction
- Using .Bat file to extract file from archive to directory
- Need to take txt from archive and merge it into a "master.txt" file.
Current contents of .bat file:
7za x *.zip -o*
COPY /Y *.zip " \Completed\"
@echo extraction complete
I really appreciate any help that can be offered. I know this was really long-winded, but often when I see these types of questions, not enough detail is presented. Thank you again.