Last active
June 17, 2019 03:18
-
-
Save andy51002000/c2e5660788f0eae6d201c0d0859053d7 to your computer and use it in GitHub Desktop.
Get Random Filename in powershell
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
function Get-RandomFilename { | |
[IO.Path]::GetFileNameWithoutExtension([System.IO.Path]::GetRandomFileName() ) | |
} | |
Get-RandomFilename | |
# Result ------------------------------ | |
# PS C:\Windows\system32> Get-RandomFilename | |
# cbzivvcs | |
# | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment