I have a Windows cmd batch file like –
Do some things (1)
“D:\Program files\LibreOffice\program\swriter.exe” Test.odt
REM Leave Test.odt open for viewing (possibly copy/pasting)
Do some things (2)
While Test.odt is open I want to continue with “Do some things (2)”. This works if any other LibreOffice app was running (Writer, Calc, etc.) when Test.odt was opened, even if they jush had a blank document opened.
However, if no other LibreOffice app was running when Test.odt was opened, then Writer won’t surrender control. Then “Do some things (2)” can only proceed if Writer is closed and LibreOffice (soffice) is closed. Even just closing Test.odt by itself doesn’t help. It doesn’t matter if Test.odt already exists or if I’m creating a new Test.odt.
I also tried each of the following (separately) in the batch file but no luck -
CALL “D:\Program files\LibreOffice\program\swriter.exe” Test.odt
or calling soffice.exe directly -
“D:\Program files\LibreOffice\program\soffice.exe” Test.odt
Thanks,
Don C.