Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

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

More
10 Aug 2016 16:09 #1 by Khadija Elyo
Khadija Elyo created the topic: execute file.exe(.bat)
Hi,
How can i execute a '.exe' or '.bat' with Stambia?
Thank you.
More
10 Aug 2016 17:22 #2 by Thomas BLETON
Thomas BLETON replied the 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
Thomas BLETON replied the topic: execute file.exe(.bat)
More
10 Aug 2016 18:28 #4 by Khadija Elyo
Khadija Elyo replied the 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
Thomas BLETON replied the 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
Khadija Elyo replied the 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
Thomas BLETON replied the 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
Khadija Elyo replied the 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
Thomas BLETON replied the 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.