Skip to Content
Windows 8 Bible
book

Windows 8 Bible

by Jim Boyce, Rob Tidrow
October 2012
Intermediate to advanced
1176 pages
27h 33m
English
Wiley
Content preview from Windows 8 Bible

Using DOS Commands in Windows 8

Readers who have used personal computers since the DOS days might still wish to enter the occasional DOS command. DOS commands will let you do things you can’t really do in Windows. For example, in those rare instances where you can’t delete a file in Windows, using a DOS erase or del command with the /F switch will often do the trick. You can use the DOS dir command to print filenames from a folder to paper or a text file.

There is one big catch to using commands in Windows 8. User Account Control (UAC) may prevent you from doing things you’d otherwise take for granted. You can get around many of those by using the Run As Administrator option to open the command prompt. Here are two different ways to open the Command Prompt window:

  • From the desktop, press Windows+X and click Command Prompt.
  • Display the Charms Bar, click Search, and type cmd. Choose cmd.exe or right-click cmd.exe and choose Run As Administrator (see Figure 39.6).

    FIGURE 39.6 Open Command Prompt

    image

The Command Prompt window that opens is much like DOS. By default, you’re taken to the home directory for your user account. But you can navigate around using the DOS cd command. For example, enter cd.. to go to the parent directory, or cd “program files” to go to the Program Files folders.

To see a list of all supported commands, enter help at the command prompt. For the syntax of a command, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Windows 2000 Commands Pocket Reference

Windows 2000 Commands Pocket Reference

Æleen Frisch
Windows 8 In Depth

Windows 8 In Depth

Brian Knittel, Paul McFedries
Windows 10 Bible

Windows 10 Bible

Rob Tidrow, Jim Boyce, Jeffrey R. Shapiro

Publisher Resources

ISBN: 9781118240748Purchase book