Skip to main content
Question

cmd and python un FME

  • July 27, 2018
  • 1 reply
  • 16 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 ?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • 305 replies
  • 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")