Skip to main content

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 ?

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