Solved

vbscript to continuously run on background

Posted on 2016-09-20
4
22 Views
Last Modified: 2016-11-05
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
Comment
Question by:arihant jain
4 Comments
 
LVL 50

Accepted Solution

by:
Ryan Chong earned 168 total points
ID: 41806110
>>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
 
LVL 25

Assisted Solution

by:Lee Savidge
Lee Savidge earned 166 total points
ID: 41806245
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
 
LVL 35

Assisted Solution

by:Kimputer
Kimputer earned 166 total points
ID: 41806249
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question