Cyrix Posted September 18, 2017 Posted September 18, 2017 My Dropbox crashes all the time. How to write a script to run in the background which monitors Dropbox.exe in Windows Task, and restarts it when it disappears? Thanks.
Belini Posted September 18, 2017 Posted September 18, 2017 You can use a loop to check if the process exists and if it does not exist dropbox.exe While 1 If Not ProcessExists("Dropbox.exe") Then ShellExecute("Dropbox.exe", "", "C:\program files\Dropbox") Sleep(1000) WEnd NOTE: Make sure the address and name of the program are correct! My Codes: Virtual Key Code UDF: http://www.autoitscript.com/forum/topic/138246-virtual-key-code-udf/ GuiSplashTextOn.au3: http://www.autoitscript.com/forum/topic/143542-guisplashtexton-udf/ Menu versions of Autoit: http://www.autoitscript.com/forum/topic/137435-menu-versions-of-autoit/#entry962011 Selects first folder of letters: ]http://www.autoitscript.com/forum/topic/144780-select-folders-by-letter/#entry1021708/spoiler] List files and folders with long addresses.: http://www.autoitscript.com/forum/topic/144910-list-files-and-folders-with-long-addresses/#entry102 2926 Program JUKEBOX made in Autoit:some functions:http://www.youtube.com/watch?v=WJ2tC2fD5Qs Navigation to search:http://www.youtube.com/watch?v=lblwOFIbgtQ
Cyrix Posted September 19, 2017 Author Posted September 19, 2017 Thank you. 23 hours ago, Belini said: You can use a loop to check if the process exists and if it does not exist dropbox.exe While 1 If Not ProcessExists("Dropbox.exe") Then ShellExecute("Dropbox.exe", "", "C:\program files\Dropbox") Sleep(1000) WEnd NOTE: Make sure the address and name of the program are correct!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now