In this article, we show you how to execute commands such as changing the current directory, switching to another drive, viewing the contents of a directory, creating and renaming folders, copying, deleting files and folders, and launching applications from the Command Prompt.We are also going to show you how to get help when using this app for Windows.
![]() Windows Command Line Commands How To Execute CommandsThis command enables you to change the current directory or, in other words, to navigate to another folder from your PC. For instance, the command CD takes you to the top of the directory tree. To see how it works, after you open the Command Prompt, type cd and press Enter on your keyboard. You should see how the CD command takes you to the top of the directory tree. If you need to go to a specific folder from this drive run the command CD Folder. For instance, when you need to access the System32 folder located in C:Windows, type cd windowssystem32 as shown below, and then press Enter on your keyboard. For instance, if you wanted to change the drive from C: to D:, you should type d: and then press Enter on your keyboard. The d parameter is used to change the current drive to a specific folder from another disk volume. For instance, if you are on D: drive and type cd c:windows nothing seems to happen. However, if you type c: then the working folder changes to c:windows, assuming that it was the last folder you worked with on your C: drive. To test it, we have created a folder named DigitalCitizen on the D: drive, with several files and subfolders. To navigate to the folder mentioned above, we have to use the command cd d D:DigitalCitizen. To view the contents of the folder, type DIR, and press Enter. The list of the files and folders contained by it is displayed, together with some details about each of them (the size and the date and time when they were last modified). To do that, we need to type mkdir DigitalCitizenLife and then press Enter, as shown below. For instance, if you are on the C: drive and type MKDIR test, the new folder is created in the root of the C: drive. ![]() For instance, if we type mkdir DigitalCitizenTestsBetaTest1 three folders are created: DigitalCitizenTests, Beta and Test1, in a tree-like structure. For example, if we wanted to rename the DigitalCitizenTests folder to DigitalCitizenFinalTests, we should run ren DigitalCitizenTests DigitalCitizenFinalTests and press Enter.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |