PDFZone Ziff-Davis Enterprise
Authoring | Utilities | Content Management | Document Management | Mobile | DRM | Other Formats | Tips
Home arrow Document Management arrow Putting the list of a folder's contents into Word
Putting the list of a folder's contents into Word
By Neil J. Rubenking

Rate This Article:
Add This Article To:
A little command-prompt magic saves you from copying individual filenames.

Is there a way to copy a list of filenames in a folder, as viewed in Windows Explorer, into a Word document without having to copy and paste each filename individually? If you open a folder and then highlight and copy a list of pictures, for example, and then paste into Word, all of the pictures are actually inserted. I want to copy just a list of the filenames of the pictures instead. ~ Jeffrey Pickle

Yes, you can do it with a little help from the Command Prompt. First open the folder in Windows Explorer. Highlight its name in the Address bar and copy it to the clipboard. Now launch Command Prompt from the Start menu. Type CD " (that's C, D, space, double quote), then right-click, choose Paste, and press Enter. If the folder of pictures is on a different drive from the Windows drive, type the drive letter and a colon and press Enter. The prompt string in the Command Prompt window should be displaying the name of your folder; for example, "G:\Photos\Concert>". Now enter the command below exactly as shown:

ADVERTISEMENT

DIR /ON /B *.* > C:\folderlist.txt

The /ON switch means Order by Name; in other words, sort the listing. The /B switch yields a "Bare" listing of just the filenames without the size and date/time stamp. And the "greater than" sign redirects the output of this command into the file C:\folderlist.txt. Open the folderlist.txt file in Word and you've got just what you were looking for.

If you don't mind spending a few bucks, TechSmith's SnagIt ($39.95; www.snagit.com ), our favorite screen capture tool, does this also—and a lot more. See our review of SnagIt at http://go.pcmag.com/snagit .

You may also want to test-drive Kleptomania 2.5 ( www.structurise.com ). Kleptomania is designed for exactly this application. It takes screenshots and converts any text in the graphic to usable text. There's a 21-day trial version, then it's $29.95 for the Private version, $49.95 for the Commercial version.




Discuss Putting the list of a folder's contents into Word
 
>>> Be the FIRST to comment on this article!
 

 
 
>>> More Document Management Articles          >>> More By Neil J. Rubenking
 



FREE ZIFF DAVIS ENTERPRISE ESEMINARS AT ESEMINARSLIVE.COM
  • Dec 5, 2 p.m. ET
    Case Studies in MSP Profitability: 10 Processes to Automate to Achieve 2008 Goals
    with Michael Krieger. Sponsored by Autotask
  • Dec 6, 12:30 p.m. ET
    The State of the Great Windows Vista Migration
    with Aaron Goldberg. Sponsored by Dell & Microsoft
  • Dec 6, 2 p.m. ET
    Three Best Practices for Securing Microsoft Exchange
    with Michael Krieger. Sponsored by Entrust
  • Dec 6, 3 p.m. ET
    Simplify Your World, part 2: A Virtual Desktops Case Study
    with Joel Shore. Sponsored by EqualLogic
  • 12-19 VTS LOGO for BotMod
    Join us on Dec. 19 for Discovering Value in Stored Data & Reducing Business Risk. Join this interactive day-long event to learn how your enterprise can cost-effectively manage stored data while keeping it secure, compliant and accessible. Disorganized storage can prevent your enterprise from extracting the maximum value from information assets. Learn how to organize enterprise data so vital information assets can help your business thrive. Explore policies, strategies and tactics from creation through deletion. Attend live or on-demand with complimentary registration!
    FEATURED CONTENT

    Sponsored by Ziff Davis Enterprise Group


    DOWNLOADABLE ROI CALCULATORS & TOOLS FROM BASELINE
      Calculate Cost and ROI of Spam, VOIP, RFID, Sarbanes-Oxley and more...


    Featured Calculators:

     



    See More Tools!
    By Category| Planners |Calculators | Quizzes

     

    Special Report


    PDFzone Special Report: Making the Perfect PDF
    The Perfect PDF
    PDFzone shows you how to shine and polish your PDF by adding the reader-friendly touches your audience desires.

    Special Report


    PDFzone Special Report: Microsoft's PDF Play
    Microsoft's PDF Play
    Microsoft planned to offer a "Save to PDF" function in Office 2007, but the threat of legal action from Adobe may have them reconsidering.

    Special Report


    PDF conversion
    PDF Conversion Central
    Convert anything and everything to PDf and back again. Word docs, RSS, AutoCAD and more.
    ADVERTISEMENT