Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I list and print files in a directory?

Tags:

powershell

I'm trying this but it doesn't print anything:

Dir -Recurse "C:\temp" | Select Fullname

Looks like this command just selects file names. I want to see them in console.

like image 816
giocante Avatar asked Jan 04 '15 17:01

giocante


People also ask

Is there a way to print a list of files in a folder?

Select all the files, press and hold the shift key, then right-click and select Copy as path. This copies the list of file names to the clipboard. Paste the results into any document such as a txt or doc file & print that. Then open notepad, open tempfilename, and print it from there.

How do I mass print all files in a folder?

To use this hotkey, simply click on the first file you want to select, then press the Ctrl key. While holding this key, click on all the other files you want to print.


1 Answers

Take a look at Get-Childitem

Dir -Recurse c:\path\ | Get-Childitem
like image 114
Anthony Forloney Avatar answered Sep 30 '22 18:09

Anthony Forloney