Anlage des Repos
This commit is contained in:
42
archive/Modules/Copy-Item-withLogging.psm1
Normal file
42
archive/Modules/Copy-Item-withLogging.psm1
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user