New Year - new passion - R/C Helicopters - such as Silverlit Picoo Z. Luckily for beginners like me YouTube has plenty of movies. But how to save them? You may say: just copy all files starting with the get_video from C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files\ where Internet Explorer stores them. It's not that easy. What you see in C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files\ it's not the reality Big Smile a list of files and that's all. Nope. If you look under the covers in C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files\Content.IE5 you will see a list of folders such as:

  • 0D2FK9MZ
  • 0FXR6YBD
  • 21FCXKBQ
  • 37XJRPWW
  • 452N8XUJ
  • 54HYO4IU
  • 81AB0PQ7
  • MP96B6LC
  • O7BFU49L
  • ST6VKLMZ
  • TC83X1S5
  • TNB3X9GE
  • TS079HG5
  • US5RAW9A
  • W9AJWLQF
  • WVZ7E0P1
  • Z4MJ8L5Y
  • ZIV1B004 

So what? So, if you try to copy all files that start with get_video you will be prompted (if you loaded enough movies):

This folder already contains a file named 'get_video[1]'.
Would you like to replace the existing file blablabla with this one? blablabla
Yes Yes to All No Cancel

Why? Because inside the temporary folders the YouTube videos have names such as get_video[1], get_video[2] and so on. And that for more than one temporary folder.

What is my solution? To move them from the temporary folders using the next PowerShell statements:

Get-ChildItem -literalpath "C:\Documents and Settings\Cristi\Local Settings\Temporary Internet Files\Content.IE5\" -recurse -Filter get_video*.* | %{$x=0} {Move-Item -LiteralPath $_.FullName -Destination ("C:\HeliMovies\Movie$x"+".flv"); $x++}

One question may arise: why literalpath ? Because file names that include '[',']' characters cannot be handle by PowerShell - at least not in this version so I needed to use a workaround.

The result: in my C:\HeliMovies\ folder I had files named movie0.flv, movie1.flv, movie2.flv etc

That spared me of manually copy them, renamed them and adding the flv extension and delete them from temporary internet files.