8
0
Skriptentwickung/archive/Modules/Copy-Item-withLogging.psm1
2024-01-24 16:42:38 +01:00

43 lines
337 B
PowerShell

function Move-Item2 {
param ($file)
Try {
$file = Get-Item -Path $file -ErrorAction Stop
}
Catch {
write-host "error"
}
IF ($file.Extension) {
write-host "ext"
}
ELSE {
write-host "no ext"
}
}
Move-Item2 -file E:\bwtserver.txt
#copy-item
step-
check-
get-verb