Sign in to follow this  
Followers 0
ncc1701

Script running multiple times

4 posts in this topic

I have created a script to reconfigure settings for an application if it is installed. I am running it as a startup script with group policy in active directory. The script itself works fine. However, on some of my computers the script is running twice, interfering with itself. I have no idea how it is being launched twice. Other than launching the application it is not launching any thing else.

I am fairly new at Autoit. Is there something I can do to troubleshooot how it is running twice on the same machine? Group policy is the only thing launching it. Keep in mind it is not doing it on every machine just a few.

Thanks in advance for your help.

Share this post


Link to post
Share on other sites



maybe have it write to a file with today's date. When ran again, it checks the date?

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

maybe have it write to a file with today's date. When ran again, it checks the date?

8)

I should have read the FAQ first like suggested.

A1. You can use a function called _Singleton to detect multiple instances of your script.

I will try this. I think this may solve my issue.

Thanks for your suggestion though. I will try that if this doesn't work.

Share this post


Link to post
Share on other sites

.. some of my computers the script is running twice, interfering with itself

yes...

A1. You can use a function called _Singleton to detect multiple instances of your script.

should do the trick here.

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0