diff --git a/Befehle.ps1 b/Befehle.ps1 index 2875516..c4a0c3a 100644 --- a/Befehle.ps1 +++ b/Befehle.ps1 @@ -68,9 +68,16 @@ do & $pfad -r $repository --password-file $passwordfile restore $snapshot --target $target } 5 { - $befehl=Read-Host -Prompt "Befehl?"; - & $pfad -r $repository --password-file $passwordfile $befehl; - break + $snapshot = read-host -Prompt "Snapshot(latest/id)"; + $target = read-host -Prompt "Zielpfad: "; + write-host "Include: " + write-host "========================================================================" + write-host -Foregroundcolor red "Beispiele: " + write-host -ForegroundColor yellow "Dateitypen: *.exe`nDatei: C\Users\mg\Desktop\rclone\datei.exe`nOrdner: C\Users\mg\Desktop\rclone\" + write-host "Alles ist Case-Sensitive!" + write-host "========================================================================" + $include = read-host + & $pfad -r $repository --password-file $passwordfile restore $snapshot --target $target --include $include } 6 { $snapshot = read-host -Prompt "Snapshot(latest/id)"; @@ -141,16 +148,9 @@ do break } 17 { - $snapshot = read-host -Prompt "Snapshot(latest/id)"; - $target = read-host -Prompt "Zielpfad: "; - write-host "Include: " - write-host "========================================================================" - write-host -Foregroundcolor red "Beispiele: " - write-host -ForegroundColor yellow "Dateitypen: *.exe`nDatei: C\Users\mg\Desktop\rclone\datei.exe`nOrdner: C\Users\mg\Desktop\rclone\" - write-host "Alles ist Case-Sensitive!" - write-host "========================================================================" - $include = read-host - & $pfad -r $repository --password-file $passwordfile restore $snapshot --target $target --include $include + $befehl=Read-Host -Prompt "Befehl?"; + & $pfad -r $repository --password-file $passwordfile $befehl; + break } 99 {exit;break} default{write-host "`nUngueltige Eingabe!"}