Computeractive

HOW TO… List and find files using Command Prompt

What you need: Windows 10 or 11

Time required: 45 minutes

When using Command Prompt, have you ever needed to list the contents of a folder or drive? If so, then the DIR command has you covered. At first glance, that’s all it can do – and in a less visually accessible way than File Explorer. But dig a little deeper and you’ll find ways in which DIR can play a more active role: use it to quickly perform file searches, generate file lists you can open and edit in any text editor, and even confirm that your precious files are safe when Windows refuses to load. Here, we’ll explain how to use this powerful tool. Note that whenever we use yourname, you should replace it with your name as it’s registered in your Users folder (it’s ‘nickd’ in our screenshots).

1 Learn the basics of DIR

Open Command Prompt (press Win+R, type cmd and press Enter) to find yourself in your personal user folder – for example, . Type dir ( in our screenshot) and. If there isn't one, you’ll see ‘Volume in drive C has no label’. Below that will be an alphabetical list of the contents of your user folder.

You’re reading a preview, subscribe to read more.

More from Computeractive

Computeractive2 min read
Full-screen Microsoft Ads ‘Thank You’ For Using Windows 10
Microsoft is showing full-screen ‘thank you’ messages to Windows 10 users whose computers aren’t able to upgrade to Windows 11. The message, titled ‘A new journey with Windows’, thanks you for your “loyalty as a Windows 10 customer”. “As end of suppo
Computeractive5 min readInternet & Web
Browser Tips
A few years ago, progressive web apps (PWAs) were touted as the future of the web – we wrote a feature about them in Issue 619 (page 60). These effectively turn websites into apps, which you can launch from your desktop without opening your browser f
Computeractive2 min readSecurity
Beware ‘press 2’ LastPass phone scam
LastPass is warning users about scammers phoning customers to claim that their account has been accessed from a new device. The fraudsters tell you to press 1 to allow access, or 2 to block it. Pressing 2 shows a message saying that someone from Last

Related Books & Audiobooks