I'm trying to write a script, that will select N number of files randomly, and move them to folders named 1, 2, 3.. Then it must compress each folder, and run another batch/script.
The script I use to randomly copy N number of files, is:
gci somefolder | random -c $x | mi -dest someotherfolder
Example of what I need:
C:\somefolder (has 11000 files)
C:\1 (has 2000 files)
C:\2 (has 2000 files)
C:\3 (has 2000 files)
C:\4 (has 2000 files)
C:\5 (has 2000 files)
C:\6 (has 1000 files)
Then each folder is compressed to
C:\1.zip
C:\2.zip
C:\3.zip
C:\4.zip
C:\5.zip
C:\6.zip
And lastly, it will run a simple another batch file (Thinking of FTP'ing files)