Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Save Result from Get-ChildItem to an external variable

$
0
0

I am trying to find a way to store the result of Get-ChildItem to an external variable that I can use in another application.

Is this even possible? Every thread I have followed has resulted in failure.

Please help!

Example:

powershell.exe -command "Get-ChildItem -Path \\atl0wencd001.cead.prd\e$\EncoreNuGet\Packages\Insco.FicoRMA.Bin.&NUGET_ENV#.*.nupkg | Sort-Object LastAccessTime -Descending | Select-Object -First 1 |


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>