Skip to main content
kevin.powell@va.gov
Participant
May 17, 2016
Question

how can I print a directory list as text to a pdf file from the SendTo menu?

  • May 17, 2016
  • 1 reply
  • 608 views

how can I print a directory list as text to a pdf file from the SendTo menu? I want to highlight a list of files in a Windows directory and save as text in a pdf file.  Can I add a virtual pdf print driver to the SendTo menu?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 17, 2016

I don't think that's possible to do it directly. You can output the files list to a temporary text file and then convert that file to a PDF, though. This can be achieved using a simple BAT file, for example.

kevin.powell@va.gov
Participant
May 17, 2016

Would the bat file cull the highlighted data in the directory list and save to file or copy to clipboard?  Once it gets into the clipboard I could past it into my spreadsheet or pdf.  Or are you describing a bat file to add a destination for the text in the SendTo menu?  The print to text command in DOS does not include the "length" property but it can be added in Windows Explorer.

Can you recommend a bat file?

try67
Community Expert
Community Expert
May 17, 2016

No, it can't output just the selected files. It will output all files, or those that you filter. And you can't use it in the SendTo menu, it's just a stand-alone tool that you can run. The commands can be something like this:

dir /b > C:\Temp\List.txt

"C:\Program Files\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe" C:\Temp\List.txt

Of course, replace the path in the second line with the actual location of your Acrobat executable.

Save those commands in a plain-text file with a .bat extension and then you'll be able to double-click and run it.