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.

Copy Directory listing to a file - followup

Discussion in 'Windows XP' started by BBPanel, 2006/09/18.

  1. 2006/09/18
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    Is there a Windows utility or something 3rd party that will allow me to copy a directory listing (or a search listing) to a word or excel file? Thanks. -Bob
     
    Last edited: 2006/09/19
  2. 2006/09/18
    PeteC

    PeteC SuperGeek Staff

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

  3. to hide this advert.

  4. 2006/09/18
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    I should have been more specific - can it be done within WinXP - this is on a corporate PC and we cannot load 3rd party apps.
     
  5. 2006/09/18
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
  6. 2006/09/18
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
  7. 2006/09/18
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    Thanks Pete - tried to get the batch file/add context menu item to work but it when I try it Windows asks me which program I want to use open the file and it denies me access - guess these corporate PCs just don't leave many options. Thanks again for the help. -Bob
     
  8. 2006/09/18
    PeteC

    PeteC SuperGeek Staff

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

    There's always Alt + Print Screen :)
     
  9. 2006/09/18
    Welshjim

    Welshjim Inactive

    Joined:
    2002/01/07
    Messages:
    5,643
    Likes Received:
    0
    BBPanel--Of course I do not know what the company's IT fellows have done, but I am surprised that the batch file method does not work, since it does not involve any "program" other than Windows, itself.
    I use a very small batch file, that creates a txt file on the Desktop from which you can copy or print.

    I copied the following into WordPad

    dir %1> "C:\Documents and Settings\UserName\Desktop\jim.txt "

    cls

    and named and saved the batch file as jim.bat. I then put the jim.bat file into the SendTo folder (C:\Documents and Settings\UserName\SendTo).
    Now when I want to make a simple copy of a directory or folder, I right click on the folder, which brings up the context menu including Send To, click Send To and click on jim.bat.
     
  10. 2006/09/18
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    This works ok - thanks.

    Now I have to figure out how to get my windows explorer back where it was originally. This little note in the discussion at http://www.windowsdevcenter.com/pub/a/windows/2005/01/04/print_directories.html - "This hack is cool, but it has a flaw when you implement it on XP: after you've implemented it, every time you try to open a folder using Windows Explorer, the Search Companion window opens instead of the folder you selected. The workaround is a quick Registry edit described in Knowledge Base article 321379"
    I should have paid attention to because now I do open a search window and I don't think I can edit the registery (haven't tried yet) to fix it.

    I also cannot delete the "Print Directory Listing" in the context box I created.
     
  11. 2006/09/18
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
  12. 2006/09/18
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
  13. 2006/09/18
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    Thanks - I'm back to "normal" now. -Bob
     
  14. 2006/09/18
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    Good news :) - thanks for the update.
     
  15. 2006/09/19
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    How can one apply this to a search - since the search function does not display the results in a folder there is no "send to" option available and saving the search only saves the search criteria not the results.
     
  16. 2006/09/19
    Bill Castner

    Bill Castner Inactive

    Joined:
    2006/08/30
    Messages:
    1,980
    Likes Received:
    0
    Highlight with your mouse the search results.
    Right click.
     
  17. 2006/09/19
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    When I do that from the search results I get "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item ".

    It works on folders but I can't get it to work with search results.
     
    Last edited: 2006/09/19
  18. 2006/09/19
    surferdude2

    surferdude2 Inactive

    Joined:
    2004/07/04
    Messages:
    4,009
    Likes Received:
    23
    Since you have indicated that you aren't allowed to load any 3rd party programs onto that corp. computer, I'd suggest that you get acquainted with all of the /switches and modifiers that the DIR command offers. You can easily use it to do your searches and redirect the results to a text file of your choosing.

    That's a nice tool that will keep you out of a jam with your boss. :)
     
  19. 2006/09/19
    BBPanel

    BBPanel Inactive Thread Starter

    Joined:
    2004/03/18
    Messages:
    41
    Likes Received:
    0
    That is a workaround but cumbersome because it creates a lot of editing to get the search results in the form I'd like it to be in. But there doesn't look like there is much else out there. Thanks. -Bob
     

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.