Solved

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

  • 21 May 2019
  • 1 reply
  • 108 views

Userlevel 1
Badge +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?
icon

Best answer by Jasper 21 May 2019, 16:56

View original

1 reply

Userlevel 7
Badge +11
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