Skip to main content
Solved

Using task logic type 'windows command' in combination with powershell to retrieve 'MyDocuments' file path

  • May 21, 2019
  • 1 reply
  • 118 views

Forum|alt.badge.img+1
I would like to use the task logic type 'windows command' in combination with powershell to execute the following command: [Environment]::GetFolderPath('MyDocuments').

In powershell this will retrieve the MyDocuments path and it should be passed into an output variable so I can use it in a processflow.

Is this possible?

Best answer by Jasper

Executing PowerShell commands using the PowerShell CLI would probably work, but it is not possible to retrieve the result and store it in a process flow variable at the moment.

An alternative solution may be that we add support for using environment variables, like %userprofile%\Documents or %temp%, in process flow connectors. This is fairly easy to implement, please post an idea if desired.
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Jasper
Superhero
  • 678 replies
  • Answer
  • May 21, 2019
Executing PowerShell commands using the PowerShell CLI would probably work, but it is not possible to retrieve the result and store it in a process flow variable at the moment.

An alternative solution may be that we add support for using environment variables, like %userprofile%\Documents or %temp%, in process flow connectors. This is fairly easy to implement, please post an idea if desired.

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