|
@@ -16,10 +16,16 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class Choice {
|
|
class Choice {
|
|
|
|
|
+ # Text to display in the option selection.
|
|
|
[string] $DisplayName
|
|
[string] $DisplayName
|
|
|
|
|
+ # Source diretory.
|
|
|
[string] $Source
|
|
[string] $Source
|
|
|
|
|
+ # Destination directory.
|
|
|
[string] $Dest
|
|
[string] $Dest
|
|
|
|
|
+ # If true, rename the existing folder with a date suffix, then copy
|
|
|
|
|
+ # source files to a new folder at the path.
|
|
|
[boolean] $MakeBackup
|
|
[boolean] $MakeBackup
|
|
|
|
|
+ # If true, skip re-copying files if only timestamps are different.
|
|
|
[boolean] $IgnoreTimestamps
|
|
[boolean] $IgnoreTimestamps
|
|
|
|
|
|
|
|
Choice($displayName, $source, $dest, $makeBackup, $ignoreTimestamps) {
|
|
Choice($displayName, $source, $dest, $makeBackup, $ignoreTimestamps) {
|
|
@@ -98,8 +104,8 @@ $CHOICES = @(
|
|
|
# Music
|
|
# Music
|
|
|
[Choice]::new(
|
|
[Choice]::new(
|
|
|
"Music: Server --> Drive",
|
|
"Music: Server --> Drive",
|
|
|
- [SourceDirs]::Music_MixxxConfig,
|
|
|
|
|
- [SourceDirs]::MixxxConfig,
|
|
|
|
|
|
|
+ [SourceDirs]::Music_Music,
|
|
|
|
|
+ [SourceDirs]::Drive_Music,
|
|
|
$false, # Make Backup
|
|
$false, # Make Backup
|
|
|
$true # Ignore Timestamps
|
|
$true # Ignore Timestamps
|
|
|
),
|
|
),
|
|
@@ -244,4 +250,4 @@ function Main() {
|
|
|
pause ([string]::Format("Done running {0}!", $option.DisplayName))
|
|
pause ([string]::Format("Done running {0}!", $option.DisplayName))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-Main
|
|
|
|
|
|
|
+Main
|