Skip to main content
Solved

Execute Windows Command from inside a System Flow


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.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

6 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 653 replies
  • 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
  • 499 replies
  • 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+9

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
  • 499 replies
  • 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+9

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings