MS Word 2016 aus Batch starten und auf dessen Ende warten
Hallo,
ich möchte testweise für Entwicklerzwecke (Laufzeitmessung) MS Word 2016 (Win10) aus einer Batch heraus starten und die Batch soll anhalten und warten, bis Word beendet ist.
Mit WordPad klappt der übliche Aufruf:
"C:\Program Files\Windows NT\Accessories\wordpad.exe" %destinationDir%\%targetfile%
die batch hält an
Bei Word 2016 scheint es nicht zu gehen:
"%ProgramFiles(x86)%\Microsoft Office\Office16\Winword.exe" %destinationDir%\%targetfile%
die batch läuft weiter
Hier hilft auch nicht
start /B /WAIT "" "%ProgramFiles(x86)%\Microsoft Office\Office16\Winword.exe" %destinationDir%\%targetfile%
Danke
ich möchte testweise für Entwicklerzwecke (Laufzeitmessung) MS Word 2016 (Win10) aus einer Batch heraus starten und die Batch soll anhalten und warten, bis Word beendet ist.
Mit WordPad klappt der übliche Aufruf:
"C:\Program Files\Windows NT\Accessories\wordpad.exe" %destinationDir%\%targetfile%
die batch hält an
Bei Word 2016 scheint es nicht zu gehen:
"%ProgramFiles(x86)%\Microsoft Office\Office16\Winword.exe" %destinationDir%\%targetfile%
die batch läuft weiter
Hier hilft auch nicht
start /B /WAIT "" "%ProgramFiles(x86)%\Microsoft Office\Office16\Winword.exe" %destinationDir%\%targetfile%
Danke
Please also mark the comments that contributed to the solution of the article
Content-Key: 5770770626
Url: https://administrator.de/contentid/5770770626
Printed on: April 27, 2024 at 13:04 o'clock
3 Comments
Latest comment