1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Folders with pictures in them.

Discussion in 'Windows XP' started by chuck-HD, Sep 30, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. chuck-HD

    chuck-HD Thread Starter

    Joined:
    Jun 3, 2005
    Messages:
    1,914
    Hi, A while ago I put my pictures into folders. I now realize I don't like them in folders. How can I remove them from the folders they are in?
    chuck.:confused:
     
  2. TerryNet

    TerryNet Moderator

    Joined:
    Mar 23, 2005
    Messages:
    78,182
    First Name:
    Terry
    If you are sure you want to get rid of the pictures delete them.

    If you think you want to get rid of them but are not sure, move them to the Recycle bin.

    If you want them somewhere else, move them to that place.
     
  3. chuck-HD

    chuck-HD Thread Starter

    Joined:
    Jun 3, 2005
    Messages:
    1,914
    Hi, I'm not sure I understand you. All I want to do is keep the pictures just remove the folders they are in.
    Chuck.:confused:
     
  4. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    You can use XXcopy to collapse all the files into one folder.
     
  5. chuck-HD

    chuck-HD Thread Starter

    Joined:
    Jun 3, 2005
    Messages:
    1,914
    I'm not familiar with xxcopy. But what I would like is to get rid of all the folders not even have one left.
    chuck.
     
  6. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Look at the /S switch variations with XXcopy. Lot of things you can do. You have to be careful should you have duplicate filenames. The /SG switch and its variations will come in handy for that.
     
  7. devil_himself

    devil_himself

    Joined:
    Apr 7, 2007
    Messages:
    4,910
    you can use this batch code

    make a backup of files before executing

    Code:
    @echo off
    set src=C:\test
    pushd "%src%"
    for /f "delims=" %%a in ('dir /b /s /a-d') do move "%%a" "%src%"
    for /f "delims=" %%b in ('dir /b /s /ad') do rd /q /s "%%b"
    popd
    
     
  8. TerryNet

    TerryNet Moderator

    Joined:
    Mar 23, 2005
    Messages:
    78,182
    First Name:
    Terry
    Depending on the quantity of files/folders involved the commands and scripts suggested may be far more convenient.

    To try to explain how my suggestion to "move the pictures" is equivalent to your "get rid of the folders" let me use an example.

    You have, say, folders C:\pictures\lastweek and C:\pictures\today each containing some picture files, but you'd prefer to have all the files in the C:\pictures folder and not have the two sub folders. So, using whatever method you prefer move (or copy) all the picture files into C:\pictures and then delete the two sub folders.
     
  9. chuck-HD

    chuck-HD Thread Starter

    Joined:
    Jun 3, 2005
    Messages:
    1,914
    I'm really sorry but I'm really stupid here. Where do i put this code and what will it do. I can back up my files.
    chuck.
     
  10. chuck-HD

    chuck-HD Thread Starter

    Joined:
    Jun 3, 2005
    Messages:
    1,914
    Is xxcopy a downloadable program?
    chuck.
     
  11. devil_himself

    devil_himself

    Joined:
    Apr 7, 2007
    Messages:
    4,910
    to backup the files copy the folder with pictures in another location

    To use the batch code .. copy everything inside the code box.. open notepad . paste the code and save the file as "picren.bat" and double click on "picren.bat" to execute it.

    you have to change the line in the code to reflect your folder
    set src=C:\test
     
  12. chuck-HD

    chuck-HD Thread Starter

    Joined:
    Jun 3, 2005
    Messages:
    1,914
    Thanks everyone. The problem was solved by opening every folder, copying the contents and pasting them back into my pictures then deleting all the folders. It worked.
    chuck.
     
  13. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    Did you Google Search.

    Sometimes you just need to K.I.S.S.
    But one line of code with XXcopy would have done the trick.
     
  14. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/754973

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice