keebz

Random file in folder

Feb 17th, 2015
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-ChildItem -name | Select-Object -index $(Random $((Get-ChildItem).Count))
Advertisement
Add Comment
Please, Sign In to add comment