Jump to content

Script running multiple times


ncc1701
 Share

Recommended Posts

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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...