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 solution. The correct way is this: "C:\Program Files\Zeiss\INSPECT\2026\bin\ZEISS_INSPECT.exe" -eval "gom.script.userscript.Automatic_Control()"

  • Like! 1
  • Thank you! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...