Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question execute file.exe(.bat)

More
10 Aug 2016 16:09 #1 by Khadija Elyo
execute file.exe(.bat) was created by Khadija Elyo
Hi,
How can i execute a '.exe' or '.bat' with Stambia?
Thank you.
More
10 Aug 2016 17:22 #2 by Thomas BLETON
Replied by Thomas BLETON on topic execute file.exe(.bat)
Hi,
You can use the "Operating System Command" action, available in the Palette.
Make sure the "OS Shell launcher" is set to "cmd /c" as your runtime apparently runs on a Windows machine.
I hope this helps.
More
10 Aug 2016 17:30 #3 by Thomas BLETON
Replied by Thomas BLETON on topic execute file.exe(.bat)
More
10 Aug 2016 18:28 #4 by Khadija Elyo
Replied by Khadija Elyo on topic execute file.exe(.bat)
Sorry, but it doesn't work !
what should i specify in "Os Working Dir" ?
and you say "Os Shell Launcher=cmd/c" ?
More
10 Aug 2016 18:43 #5 by Thomas BLETON
Replied by Thomas BLETON on topic execute file.exe(.bat)
What does "it doesn't work" mean?
Can you describe what you have configured, and what you get? Is there an error message?

Did you try with a simple command like "dir c:" and check the "Variables" view to see if the return variables are OK (see article link above).

"OS working dir" is optional, it depends if you exe/bat needs a particular working directory.
"Os shell launcher" has to be set to "cmd /c" in the action's properties.

Give us more details if you need more help ;)
More
11 Aug 2016 12:57 #6 by Khadija Elyo
Replied by Khadija Elyo on topic execute file.exe(.bat)
Hello,
Here's my configuration and the error message i have.
Thanks for help.
Attachments:
More
11 Aug 2016 13:30 #7 by Thomas BLETON
Replied by Thomas BLETON on topic execute file.exe(.bat)
I'm not sure I read well the screenshot, but I think you are missing a white space between cmd and /c.
It should be cmd /c
Not cmd/c
Note: latest versions have a dropdown list with the most current OS launcher (cmd for windows, sh for linux...)
More
11 Aug 2016 16:49 #8 by Khadija Elyo
Replied by Khadija Elyo on topic execute file.exe(.bat)
You're right Thomas, the problem was the missing white space.
The "Operating System Command" executes the .bat mentioned in the Expression Editor and the result is correct, but the component shows an error and blocks the process.
see the image below.
Attachments:
More
16 Aug 2016 10:04 - 28 Sep 2016 16:08 #9 by Thomas BLETON
Replied by Thomas BLETON on topic execute file.exe(.bat)
Hi,
I don't have this kind of error on my side.
Are you sure the command line is correct?
You can contact the support team and show them the command line, error message, and your Runtime version.
Last edit: 28 Sep 2016 16:08 by Thomas BLETON.