Results 1 to 4 of 4

Thread: This might be a longshot... DOS FOR command..

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Age
    43
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default This might be a longshot... DOS FOR command..

    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
    Code:
    FOR %F in (*.avi) do copy blank.jpg %F.jpg
    but that didn't work....

    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 ->
  • #2
    Member
    Join Date
    Jan 2008
    Location
    Vic
    Posts
    334
    Thanks
    18
    Thanked 20 Times in 15 Posts
    Rep Power
    211
    Reputation
    143

    Default

    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"

  • #3
    Senior Member
    ssrattus's Avatar
    Join Date
    Jan 2008
    Posts
    4,160
    Thanks
    515
    Thanked 821 Times in 490 Posts
    Rep Power
    455
    Reputation
    5922

    Default

    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.

  • #4
    Junior Member
    Join Date
    Jul 2008
    Age
    43
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Reputation
    10

    Default

    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

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •