Jump to content

Starting a script from a batch file


---
 Share

Recommended Posts

Good morning,

I have to automatically start a script and I tried to use this import subprocess
subprocess.call ('"C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "import Automatic_Control"') putting it on a bat file, but it doesn't work (it flash a winodow). Automatic control is a simple GUI with a simple "Ciao" write using tkinter. This script works launching it directly from Apps. Ideas? Thank you very much for your support!

Link to comment
Share on other sites

I found this https://zeiss.github.io/zeiss-inspect-app-api/2026/howtos/starting_options/starting_options.html and I changed the bat file with the correct way for 2026 Zeiss, using this import subprocess
subprocess.call ("C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "gom.script.userscript.Automatic_Control()") but it doesn't wotk anymore.

Link to comment
Share on other sites

I found solution. The correct way is this: "C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "gom.script.userscript.Automatic_Control()"

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...