microsoft:powershell
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| microsoft:powershell [2018/05/29 13:21] – external edit 127.0.0.1 | microsoft:powershell [2018/12/05 16:23] (current) – felix | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| * ''<# | * ''<# | ||
| + | Backup-Skript mit PowerShell: | ||
| <code powershell> | <code powershell> | ||
| $timestamp = Get-Date -Format yyyy-MM-dd_HHmmss | $timestamp = Get-Date -Format yyyy-MM-dd_HHmmss | ||
| Line 37: | Line 38: | ||
| Get-ChildItem *.jpg | Rename-Item -NewName {$_.name.PadLeft(9, | Get-ChildItem *.jpg | Rename-Item -NewName {$_.name.PadLeft(9, | ||
| # Die 9 ist die Ziel-Dateinamenlänge; | # Die 9 ist die Ziel-Dateinamenlänge; | ||
| + | </ | ||
| + | |||
| + | PowerShell-Skript über .bat-Datei aufrufen: | ||
| + | <code dos> | ||
| + | powershell.exe -command "& ' | ||
| </ | </ | ||
microsoft/powershell.1527592874.txt.gz · Last modified: by 127.0.0.1
