Quantcast
Channel: 2BrightSparks
Viewing all articles
Browse latest Browse all 9303

Re: Exiting program with "run before profile"

$
0
0
Hello,

Could you please confirm that this batch file, launched as "Run before profile" together with the "Wait until the program has finished..." option, should make sure that the program (in this case Thunderbird) gets fully closed before the SyncBackSE profile begins?
I tried it, also with other programs, and it seems OK, but would like a confirmation.
Thanks.

@ECHO OFF
ECHO Chiusura Thunderbird prima di procedere...
TASKKILL /IM thunderbird.exe
REM Wait for a program to be finished
set PROGRAM_EXE_NAME=thunderbird.exe
:LOOP
TASKLIST | FIND "%PROGRAM_EXE_NAME%" >NUL
IF ERRORLEVEL 1 GOTO FINISH
TIMEOUT /T 1 >NUL
GOTO LOOP
:FINISH

Viewing all articles
Browse latest Browse all 9303

Trending Articles