1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Folder Directory List Problem Using printdir.bat

Discussion in 'Windows XP' started by simpson, 2008/12/08.

  1. 2008/12/08
    simpson

    simpson Inactive Thread Starter

    Joined:
    2008/12/08
    Messages:
    2
    Likes Received:
    0
    I wanted to print a directory listing of folders so I searched around and found some directions here - http://support.microsoft.com/kb/321379.

    Following the directions, I created the the printdir.bat file (shown below) and saved it to my Windows directory.

    @echo off
    dir %1 /-p /o:gn > "%temp%\Listing "
    start /w notepad /p "%temp%\Listing "
    del "%temp%\Listing "
    exit​

    The directions say that a registry edit might be needed. I stopped short of doing that and only completed steps 1 & 2 in the directions.

    At that point I changed my mind and decided not to continue. Now, every time I click on a folder, a search results window pops up instead of the folder contents. I can right click on the folder and open it that way, but that gets old after a few times. I'd like to have things back to the way they were before I started messing around but do not know how to get there. I deleted the batch file and that didn't help, so I put it back.

    Any ideas on how I can fix this little problem?
     
  2. 2008/12/08
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389

  3. to hide this advert.

  4. 2008/12/08
    goddez1

    goddez1 Inactive

    Joined:
    2002/01/12
    Messages:
    2,975
    Likes Received:
    49
    Hi,

    Even though Pete types faster....:) I have included, in my post, two options for your Print Directory quest also. I'm gonna' post it here in hopes it helps.

    ------double click on file opens search--------
    Fix 1]
    http://support.microsoft.com/default.aspx?scid=kb;en-us;Q321186

    Fix 2]
    http://www.dougknox.com/xp/scripts_desc/xp_folder_open.htm
    FYI, This quirk is most often caused by opening Explorer or My Computer and clicking on the Tools > Folder Options > File Types > File Folder and selecting "Advanced" then clicking OK instead of Cancel. Even though you have only looked and made no changes, changes will nevertheless be made IF you have selected "Advanced" and IF you then click OK. To avoid this, always click "Cancel" when you don't intend to change things.
    As an alternate to the above fix, you can go to Start >Run and type:
    regsvr32 /i shell32.dll
    Press enter. The effect is immediate with no reboot required.

    ---Print directory problem-------------------------
    Choice1]
    http://www.windowsbbs.com/test-posts/73779-directory-list.html

    Choice2]
    http://www.karenware.com/powertools/ptdirprn.asp
     
  5. 2008/12/08
    simpson

    simpson Inactive Thread Starter

    Joined:
    2008/12/08
    Messages:
    2
    Likes Received:
    0
    Not sure how to reverse Step 2 steps, could see no way to remove/delete option that was causing the problem. It lists three edit folder file type options - find, Open Command Window Here, and Print Directory Listing. The Edit and Remove buttons are grayed out. Right clicking on any of the options shows only "What is this? ".
    However, your "fix from Doug Knox" worked like a charm and I'm back in business.
    Thanks!
     
  6. 2008/12/08
    mickzer

    mickzer Well-Known Member

    Joined:
    2004/03/28
    Messages:
    300
    Likes Received:
    18

Share This Page

  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.