mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Changed ScriptCore to DotNet Standard 2.0
This commit is contained in:
@@ -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."
|
||||
}
|
||||
Reference in New Issue
Block a user