Solved

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

  • 21 May 2019
  • 1 reply
  • 59 views

Badge
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?
icon

Best answer by Jasper 21 May 2019, 16:56

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

1 reply

Userlevel 6
Badge +6
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.

Reply