It sounds like the problem is exactly what I said.I have only 1 instance of MultiStart & that is in C:\Users\user\Scripts\AHK\Startup. I don't know how it can be in C:\Users\user\Scripts\AHK\*.exe since the exe bit is not a folder. I never added any exe to any of my AHK scripts; the only one that has it is MultiStart & only because i copied it from your original script.
Be that as it may, I don't think it is possible to resolve the issue this way, so I will give up & just stay with all the individual scripts' shortcuts in the start-up folder.
Many thanks for your support & time. I hope we can still work together in future
You have a copy of MultiStart in your Startup folder. Then when MultiStart runs, you have a path to run everything in the Startup folder, which causes the first instance of MultiStart to run everything in the Startup folder, which runs another instance of MultiStart, which then runs everything in the Startup folder, over and over.
The number of instances of a program running has nothing to do with how many times you have it in folders. I only have notepad.exe in one place on my computer but I can start that program over and over and have 10 instances of notepad.exe running at the same time.
This script is designed to run other scripts but one of the other scripts it runs cannot be another instance of itself which is what is happening when you tell it to run everything in the folder it is in.
You need to remove the line:
There is no need to have this script run everything in the Startup folder. That is done automatically by Windows when your computer boots up.
Rereading your post it sounds like you don't even need the Startup or Compiled Scripts paths, those were just examples in my script of path names. Not paths that you need for you.
You need to delete everything between:
And put only the paths that you want.
Everything between those two lines in my script are only examples.
All of these are only example of paths and how they are formatted:
Code: Select all
"C:\Users\Guru\Documents\AutoHotkey\Startup\" "C:\Users\Guru\Documents\AutoHotkey\Compiled Scripts\*.exe" A_MyDocuments "\AutoHotkey\My Scripts\Hotstring Helper.ahk" "C:\Users\Guru\Documents\AutoHotkey\My Scripts\Calculator.ahk" ".\Web\Google Search.ahk" "..\Dictionary.ahk" "Hotkey Help.ahk" "MediaMonkey.ahk"