|
Check to see if process is running
I'm admitting now that I'm new to Javascripting, and I'm trying to edit some existing JS code that was created by someone that knew what they were doing.
The problem that I am running into is that I have a process, PDFConvert.exe, that is initiated by a button click that takes info from different sources, combines it, and converts it to a PDF document.
The problem is that after the PDF is created PDFConvert.exe still runs for several seconds. This creates a problem if a user selects the button again, the process will error out and the pdf will not be created.
Is there a way to insert some JS code to check to see if PDFConvert.exe is running? And if it is running to wait x amount of seconds and try again, if it is still running to wait again?
|