Created
October 8, 2019 07:29
-
-
Save sub314xxl/e15a5ef1614b6f12d579eb5451c36b32 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Provide Folder name and create | |
$Folder=’C:\Demo’ | |
New-Item -ItemType Directory -Path $Folder | |
# Create a series of 10 files | |
for ($x=0;$x -lt 10; $x++) | |
{ | |
# Let’s create a completely random filename | |
$filename=”$($Folder)\$((Get-Random 100000).tostring()).txt” | |
# Now we’ll create the file with some content | |
Add-Content -Value ‘Just a simple demo file’ -Path $filename | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment