Skip to main content
Question

cmd and python un FME

  • July 27, 2018
  • 1 reply
  • 14 views

Forum|alt.badge.img

Hello,

I want, after pressing the ''run'' button in FME and before starting the translation that windows cmd to open, to print some text of my choice for a time period I choose, and then close itself and next the translation to start and continue normally till the end

 

Is there any way to that using the startup script in the workspace parameters ?

1 reply

stalknecht
Contributor
Forum|alt.badge.img+19
  • Contributor
  • July 28, 2018

You can create batch file with the following contents:

echo "This is the message you want to give"
ping 127.0.0.1 -n 6 > nul
exit

The echo command is for displaying the text

The ping command is a workaround to delay

The exit command will close the command window

then you can use this python script to start it

import os
os.system("start c:\\temp\\test.bat")

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings