Skip to content

Conversation

@HaleyAddison
Copy link
Contributor

The previous version of this script filtered out any data that wasn't a .DAT meaning that even though Logconvert.exe works on .TSVs individually, the script wouldn't accept .TSVs in mass. This , thanks to a change in line 114, accepts both .TSV and .DAT and turns the entire directory into Wibl

@selimnairb selimnairb self-requested a review March 28, 2025 01:48
# The format to convert from, either YDVR or TeamSurv.
[string]$Format = "YDVR"
)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add something like this here:

$inExtension = switch ( $Format )
{
    YDVR { "dat" }
    TeamSurv { "tsv"}
}

This will set the input file extension to use in a variable called $inExtension.

Then when you do the filtering below, try something like:

$AllFiles = Get-ChildItem -Path $OutputFolder -Filter "*.$inExtension" -Recurse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants