Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm batch transcoding some 50 GB of video files on a USB hard disk which is connected to a wlan router. The drive is mapped as a network drive on my Windows 7 laptop.

The speed handicap of the wlan causes some parts of the processing to become unnecessarily slow, so I would like to do the following with PowerShell:

  1. List the names of the files on the network drive to be transcoded
  2. Copy the first file to a temporary folder on my laptop
  3. Simultaneously
    • Transcode the file in the folder
    • Begin copying the next file from the network drive to the temporary folder
  4. After transcoding and copy have both ended,
    • Delete the file which has been transcoded from the temporary folder
    • Begin transcoding next file in the temporary folder
  5. Loop until all files have been processed

How would I be able to do this with PowerShell? The multitasking part is an obstacle for my skill/persistence combination.

share|improve this question
Belongs to StackOverflow – Snark Apr 5 '10 at 7:09
@snark: Not really, user/admin scripting is not necessarily a development question. – Richard Apr 5 '10 at 10:53
@Richard: if it was admin scripting, that would be for Server Fault :-) – Snark Apr 5 '10 at 11:09

You could look at the support for Jobs in PSH 2.

help about_jobs

to get an introduction.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.