I am new to scripting world so might be asking some novice question but I did not find the exact code after so much googling.
My requirement is to generate a script to copy X number of files from one folder to another. Here number of files to be copied, source and target folder should be configurable in the script.
I tried Xcopy, Robocopy but in none I found any parameter to restrict the number of files to be copied. The program will run on Win7 or Win2008 server.
Please help.
Copy-Itemtechnet.microsoft.com/en-us/library/ee156818.aspx