Every 70 seconds scrapebox inputs the good proxies into a file, any file I want, call it first.txt. So first.txt say has 5 lines of proxies. The 70 seconds later, it copies over the previous 5 proxie

Every 70 seconds scrapebox inputs the good proxies into a file, any file I want, call it first.txt. So first.txt say has 5 lines of proxies.
The 70 seconds later, it copies over the previous 5 proxies and puts however many it found, say it was 10.
So first.txt has only 10 proxies, but the first 5 are gone.
So I wanted to copy those proxies every 70 seconds and add them to a second file and combine them with the first file.
So then I will have 15 proxies
curious stuffAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aikimarkCommented:
This is a strange requirement.  What is the context/nature of the problem to be solved?
curious stuffAuthor Commented:
I want to copy the proxies from scrapebox that autmatically gets saved in a text file and proxies are replaced in same file after every 70 seconds, so i want to copy  the data and append it to a new file after every time data gets replaced in source file in every 70 seconds.
curious stuffAuthor Commented:
Sir, here is what i want.Every 70 seconds scrapebox inputs the good proxies into a file, any file I want, call it first.txt. So first.txt say has 5 lines of proxies.
The 70 seconds later, it copies over the previous 5 proxies and puts however many it found, say it was 10.
So first.txt has only 10 proxies, but the first 5 are gone.
So I wanted to copy those proxies every 70 seconds and add them to a second file and combine them with the first file.
So then I will have 15 proxies
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

aikimarkCommented:
Then it seems simpler to create an every minute scheduled task to do a copy (append).  No need for script coding required.
curious stuffAuthor Commented:
How can i create an every minute task to append the file?
Bill PrewIT / Software Engineering ConsultantCommented:
Here is the basic approach to do what aikimark suggested.  Replace my test file paths for the two file names (full paths) in the arguments.

Start the "Task Scheduler"
Action -> Create Task...
General tab:
      Name: <give it a name>
      Hidden: Yes
Triggers tab:
      New...
      One time
      Repeat task every: type "1 minutes" into the drop down box
      Enabled
      (no expiration)
Actions tab:
      New...
      Program/script: cmd
      Add arguments: /c type "B:\EE\EE29129705\first.txt" >> "B:\EE\EE29129705\all.txt"

Save it, and run it manually once to start it off, it will then run every minute.


»bp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aikimarkCommented:
Thanks, Bill
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.