mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
24 lines
611 B
PowerShell
24 lines
611 B
PowerShell
# Definiere die Parameter $sourceDir und $destinationDir
|
|
param
|
|
(
|
|
[string]$sourceDir,
|
|
[string]$destinationDir
|
|
)
|
|
|
|
if (-not (Test-Path -Path $sourceDir))
|
|
{
|
|
Write-Host "Source directory $sourceDir doesn't exist."
|
|
exit
|
|
}
|
|
|
|
# Create destination if necessary
|
|
if (-not (Test-Path -Path $destinationDir))
|
|
{
|
|
New-Item -ItemType Directory -Force -Path $destinationDir
|
|
}
|
|
|
|
# Gebe die Pfadinformationen aus
|
|
Write-Host "Kopiere Dateien von $sourceDir nach $destinationDir"
|
|
|
|
# Copy all files from source folder to the destination folder
|
|
Copy-Item -Path "$sourceDir\*" -Destination $destinationDir -Recurse |