File move with input paramters

#WFile Move $sourceFolder = read-host "Please enter source Folder" $format = read-host "Format to look for" $destFolder = read-host "Please enter destination Folder" Get-ChildItem -Path $sourceFolder -Filter $format -Recurse | Move-Item -Destination $destFolder -WhatIf #remove -WhatIf to make it actually work
Simple file mover.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.