Changed ScriptCore to DotNet Standard 2.0

This commit is contained in:
Simon Lübeß
2023-07-19 15:45:36 +02:00
parent cd1562f372
commit 6e02a04a4f
5 changed files with 437 additions and 109 deletions
+22
View File
@@ -0,0 +1,22 @@
# Definiere die Parameter $sourceDir und $destinationDir
param
(
[string]$sourceDir,
[string]$destinationDir
)
# Überprüfe, ob die Verzeichnisse existieren
if ((Test-Path -Path $sourceDir) -and (Test-Path -Path $destinationDir))
{
# Gebe die Pfadinformationen aus
Write-Host "Kopiere Dateien von $sourceDir nach $destinationDir"
# Kopiere alle Dateien vom Quell- zum Zielverzeichnis
Get-ChildItem -Path $sourceDir -File | ForEach-Object { Copy-Item -Path $_.FullName -Destination $destinationDir }
}
else
{
Write-Host "Ein oder beide Verzeichnisse existieren nicht."
}