Skip to main content
Answer

Execute Windows Command from inside a System Flow

  • April 16, 2024
  • 6 replies
  • 92 views

Harm Horstman
Superhero
Forum|alt.badge.img+21

We like to execute a windows command from inside a system flow

Example:

DIR "\\sharename\queue" /b /s >”\\sharename\cmd\queue.txt"

What is de best approach?

Best answer by Anne Buit

Hi Harm,

Having Indicium execute a shell command like this is currently not possible.

The easiest approach would be to set up a small, local web service that has the proper authorization to execute such commands and call this via an HTTP connector.

For this specific use case, consider using the List folder connector to read the files from a directory.

This topic has been closed for replies.

6 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • Answer
  • April 17, 2024

Hi Harm,

Having Indicium execute a shell command like this is currently not possible.

The easiest approach would be to set up a small, local web service that has the proper authorization to execute such commands and call this via an HTTP connector.

For this specific use case, consider using the List folder connector to read the files from a directory.


Harm Horstman
Superhero
Forum|alt.badge.img+21
  • Author
  • Superhero
  • April 17, 2024

Hello Anne,

I thought so and actually this is not really the way we wanted to go.

Using the List Folder connector seems to be the right choice. I gave this a try already, but it didn't work and proper documentation with examples is missing.

Maybe someone can give some more details the possibilities and how to set up List Folder connector.

 

 


Jeroen van den Belt
Administrator
Forum|alt.badge.img+10

Hi @Harm Horstman,

Side thingy. The example as provided here did not help you out? https://docs.thinkwisesoftware.com/docs/sf/process_flows_connectors#example-of-folder-contents-json

If it didn't suffice, please let me know why/what to improve and I’ll make sure to add a Documentation ticket about this in your name.


Harm Horstman
Superhero
Forum|alt.badge.img+21
  • Author
  • Superhero
  • April 17, 2024

Hi Jeroen,

Yes there is some documentation, but what is difficult to understand is the fact that there is a “Storage Location” setting in the Proces Action and a Input Parameter "Source Folder (pointer)”

I have tried various settings, but it did not work for a network share.

 

 

 


Jeroen van den Belt
Administrator
Forum|alt.badge.img+10

Hi Harm, we created a Docs ticket for this situation. Do you still require further assistance or can we close this topic?


Harm Horstman
Superhero
Forum|alt.badge.img+21

I am OK for now.

Good to update Docs on this.

Thanks