View Create-m3u.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create an m3u from the given list of files | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory)][string] $targetFilePath, | |
[Parameter(Mandatory)][IO.FileInfo[]]$sourceCuePaths | |
) | |
$targetFilePath = [IO.Path]::ChangeExtension($targetFilePath, 'm3u') | |
$m3uBodyArray = $sourceCuePaths | foreach-object { | |
[IO.Path]::GetFileName($_) | |
} |
View Rename-BinCue.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for a given cue/bin pair, rename the bin file, rename the cue file with the corresponding name, | |
# and update the bin reference within the cue file to match | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory)][io.FileInfo]$sourceBinPath, | |
[Parameter(Mandatory)][string]$newName | |
) | |
$sourceCuePath = [io.path]::ChangeExtension($sourceBinPath, 'cue') | |
write-verbose("sourceCuePath: $sourceCuePath") | |
$sourceBinName = [io.path]::GetFileName($sourceBinPath) |
View gist:3e2ef6fe5e535d6818c624011f80ba0c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |