-
When using the Save-EvergreenApp function, it appears that it downloads to a set of subdirectories in the -Path that's specified. For example, if I run: It downloads to: Is there a way for me to obtain the path and filename of the download (using PowerShell, of course)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the answer to my question. Rather than executing the command directly, assign it to a variable. Upon invocation of the above-mentioned command, it runs both Get-EvergreenApp and Save-EvergreenApp and stores the (extended) output to the I can now view all of this extended info using: And then I can retrieve bits of this data: Download path($download).DirectoryName Downloaded file name($download).Name Full path and file name($download).FullName |
Beta Was this translation helpful? Give feedback.
I found the answer to my question.
Rather than executing the command directly, assign it to a variable.
$download = Get-EvergreenApp -Name AdobeAcrobatReaderDC | Where-Object { $_.Language -eq "MUI" -and $_.Architecture -eq "x64" } | Save-EvergreenApp -Path C:\temp
Upon invocation of the above-mentioned command, it runs both Get-EvergreenApp and Save-EvergreenApp and stores the (extended) output to the
$download
variable.I can now view all of this extended info using:
$download | Select -Property *
And then I can retrieve bits of this data:
Download path
($download).DirectoryName
Downloaded file name
($download).Name
Full path and file name
($download).FullName