Listing of files in a folder

I’m trying to get a printout of my Desktop folder to show all the items on my desktop. I’ve done this before using the Command Prompt. I go to dos, go to my desktop directory, then “dir/w/on > tmp.lis” to create a file containing all the items so I can print it for my records.

When I go into the Command Prompt and look at all the files in the directory, not all the items on my desktop are listed. My apps are not listed, because they’re “shortcuts”. They are listed in the Windows File Explorer.

How can I get a list of what’s in my Desktop folder (without having to do screen prints) so I can print it?


Discussion is locked

Reply to: Listing of files in a folder
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: Listing of files in a folder
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
- Collapse -
Re: desktop

In the output of dir I see all folders and all shortcuts (files with a .lnk extension) in my Desktop folder, exactly the same folders and files I see in File Explorer for that folder.. I've got no other files, but I don't doubt they would show.

What are the "apps" you see in File Explorer in the deskop folder. I see none, and I don't understand what you see.

By the way there is no "dos" in Windows, only a command prompt that's called cmd.

- Collapse -
Try this at the CMD prompt.

Try add /A to the DIR command. That is:


This way hidden and system files will be listed. Once that's working now you can redirect that to a file for editing and printing. That command might be:

DIR /A > myfiles.txt

CNET Forums

Forum Info