Created
October 8, 2019 02:42
-
-
Save mkht/7ce01f55b3712abfcbbf8ddb28fa3f2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = 'Stop' | |
cd C:\ | |
$null = New-Item C:\j\k\l -ItemType Directory -Force | |
$null = Get-ChildItem C:\j\k | Select-Object -First 1 | |
Remove-Item C:\j\k -Recurse -Force | |
Start-Sleep -Seconds 3 | |
Remove-Item C:\j\k -Recurse -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment