• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 94
  • Last Modified:

vbscript to continuously run on background

Hi all!
I am looking for a vbscript code that doesn't take much of memory and lets a vbscript continuously run on the background without hogging the computer!
Thanks.
0
arihant jain
Asked:
arihant jain
3 Solutions
 
Ryan ChongCommented:
>>a vbscript continuously run on the background without hogging the computer!
the vbscript itself does not continuously run on the background unless you're writing an infinite loop in the codes.

>>that doesn't take much of memory
that's depends on what kind of tasks the vbscript is doing.

for a better background handling, are you consider to write a service level program instead?
0
 
Lee SavidgeCommented:
Well, you wouldn't have it running continuously. If you wanted to run it often, then maybe running it via a Windows scheduled task would suffice.

What is the task doing?
0
 
KimputerCommented:
Depends also what you're trying to achieve. What about just using the task scheduler to fire the vbs script instead?

VBS with loop that fails, you will never know about it.

Failed VBS Task, can be run again the next time

Or as the other post says, service, also has the ability to restart.

Obviously, this is for small errors, with big ones, it doesn't matter which route, they will all stop working. This is just a comment for smaller temporary ones.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now