M
M
MaksPaverov2019-03-01 18:03:01
Windows
MaksPaverov, 2019-03-01 18:03:01

Why does the program immediately close from the scheduler?

There is a program which is started from VBS.
If you start it manually, then everything works fine, but if you add it to the scheduler or autoload, it starts and closes, but because of VBS it constantly restarts. This continues all the time. Everything works fine on a friend's PC, but it doesn't work for me.
What could be the problem and how to solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem @Jump, 2019-03-01
@MaksPaverov

The reason is that the launch from the scheduler is usually done on behalf of a different user, with different rights and with a different environment.
There are two solutions -

  • Run as the same user with the same environment.
  • Edit the script to replace relative paths with full paths, and make sure it only accesses allowed objects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question