Use the API to get an example of whether an app is running

xiaoxiao2021-04-08  396

Below is a BAT batch file in the PB program, then wait for it to perform. Li_Filenum = FileOpen ("C: / Temp / Busy. $$$", LINEMODE!, WRITE! (Li_Filenum, "Busy As Usual.") fileclose (li_filenum) // Batch File Starts Successful ? IF ("run.bat arg1 arg2", minimized!) = 1) THEN / / YES, BATCH File Started successfulness; // Wait for Batch File to finishdo while ("c: /TEMP/Busy. $$ ")) setpointer (HOURGLASS!) Yield () Loopend ifthe batch file 'run.bat' Typically Will Contain Something Like: @echo offm --- run.bat ------------- -Rem Function: Do Your ThingRem: -% 1: Argument 1Rem -% 2: Argument 2Rem Do Your Thing Heredel C: / Temp / Busy. $$$

Reprinted: http://www.pdriver.com/display.asp? Key_id = 1098

转载请注明原文地址:https://www.9cbs.com/read-132753.html

New Post(0)