try the following instead in a batch file (say c:\temp\createjpg.bat)
Code:FOR /R "C:\temp\" %%F in (*.avi) do copy C:\temp\blank.jpg "%%~dpnF.jpg"
I'm trying to batch create mock thumbnails to stop Vista media centre generating thumbnails. Normally, vista media centre reads a video file and generates and thumbnail on the fly which can be unbearably slow fro folders with alot of files in it. To bypass this I've discovered that if you have a jpg with the same filename VMC just uses the jpg for the thumbnail of the corresponding file and doesn't bother generating one itself. Further more, if you have a blank file(i.e a blank text file that you've changed extension to .jpg) it displays no thumbnail at all... only the file name... which is what i'm trying to accomplish.. What I'm basically trying to do is:
1) have a blank text file that i've created and renamed as blank.jpg
2) read the files in a folder and all subfolders, then copying blank.jpg to said folders renamed as the filenames.
so if i had:
d:\my videos\
myvideo1.avi
myvideo2.avi
myvideo3.avi
to be able to create:
d:\my videos\
myvideo1.avi
myvideo1.jpg
myvideo2.avi
myvideo2.jpg
myvideo3.avi
myvideo3.jpg
as a start i tried using the FOR command in dos
but that didn't work....Code:FOR %F in (*.avi) do copy blank.jpg %F.jpg
eventually i'd like it to go through the subdirectories as well..
i'm sorta at my wits end with this... and any help or input would be greatly appreciated.
thanks in advance,
el
Look Here -> |
try the following instead in a batch file (say c:\temp\createjpg.bat)
Code:FOR /R "C:\temp\" %%F in (*.avi) do copy C:\temp\blank.jpg "%%~dpnF.jpg"
Why not just stop Vista creating the thumbnails....
1. Click on the Start button, then on All Programs, follow by Accessories.
2. Run Windows Explorer.
3. In Windows Explorer window, click on Organize button on the menu/shortcut bar.
4. In the pull down menu, click on Folder and Search Options.
5. Folder Options dialog window will appear. Click on View tab.
6. Under the Files and Folders tree heading, check (tick) the checkbox next to Always show icons, never thumbnails option.
7. Click the OK button.
thank you SO MUCH OSD... it works perfectly does just what i wanted it to do.. THANK YOU THANK YOU.. after i deleted the existing thumbs.db and ehthumbs files NO MORE THUMBNAILS.. just filenames.. it's awesome.. THANK YOU
sstratus.. media centre generates it's own thumbnails(for video's at least), independant of explorers or even media players thumbnails creation. i've tried what you suggested.. also registry fixes to stop media players thumbnails creation and nothing worked, this does.
el
Bookmarks