DISQUS

Tech-Recipes: Send Listing of Directory or Folder To Notepad For Easy Printing | Windows | Tech-Recipes

  • davak · 5 years ago
    Trojan at mameworld.info made the following suggestion for creating a barebones listing...



    Change

    dir "%~dp1" > dir.txt || pause

    to

    dir /b "%~dp1" > dir.txt || pause




    Original thread:
    http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=36808&page=&view=&sb=5&o=&vc=1
  • zixp · 5 years ago
    There is a much easier way to get your directory listing into a text file:

    Open the command line
    "cd" to the directory you want
    type "dir >> "C:Your_Text_File.txt"

    Thats it, it will create your text file with the directory listing. Better yet, you can use ">>" with any other commands, all it does is direct the output to a text file.
  • Anonymous · 5 years ago
    Does not work! I created the text file, i tried to save it as said via Save As and it still added the .txt to the file name on desktop, i renamed it as a .cmd file and no go nothing, the Open With... window appears every time i double-click it, if i drag a file onto it the file just re-appears on the desktop, no .txt file created.

    Sorry, does not work here with Win98SE.
    What's up?
  • Anonymous · 1 year ago
    Excellent tool, my son explained I didn't have to double clk the icon to get it to work correctly. Nice site (Tech Recipies) thanks bobo