< Back

Get-ODUExportLatestPath

Sat Jan 18, 2020 5:32 pm

NAME Get-ODUExportLatestPath



SYNOPSIS

Gets latest export full folder path that matches YYYYMMDD-HHMMSS name format





SYNTAX

Get-ODUExportLatestPath [<CommonParameters>]





DESCRIPTION

Gets latest export full folder path that matches YYYYMMDD-HHMMSS name format

Grabs latest export found under: Root folder \\ Octo Server Name

but has format name: YYYYMMDD-HHMMSS or, more specifically: ^\\d{8}-\\d{6}$

If you copy & rename a folder it won't get returned unless it matches that format.





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.String





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ODUExportLatestPath



c:\\OctoExports\\MyOctoServer.octopus.app\\20181107-185919











RELATED LINKS

https://github.com/DTW-DanWard/OctopusDeployUtilities