Click here to view previous tutorial on command prompt.
To run a program from the Command Prompt, you need only to navigate to the directory that contains the executable and simply type in the program name. For example, if we want to launch Paint using Command Line, we have to go to
change the working directory to the application's folder by typing cd/d c:\windows\System32\. Then we just write mspaint.exe and press Enter.
Deleting a folder in CMD
The DEL (Delete) is used to delete files within the directories you've created. To delete all the files from a directory you have to type del directory name. Let's try this command. For example, from the directory wtf located on the
Here is a list of useful DEL combinations that is worth mentioning:
You can make a new directory using the MKDIR (Make Directory) command. The syntax of this command is MKDIR directory name.
Let's say we need to create a new folder called wtf_v1 that will be placed in the 'd:\wtf' folder. We will type mkdir wtf_v1 and then we press Enter.
To get a list of some other commands in cmd just type "HELP" in command prompt. Sample below;
Troubleshooting windows 8/8.1
Useful Commands in CMD
Launch an application in CMDTo run a program from the Command Prompt, you need only to navigate to the directory that contains the executable and simply type in the program name. For example, if we want to launch Paint using Command Line, we have to go to
C:\Windows\System32
and there we will find the executable called mspaint.exe. Let's see how this operation can be done, if we are on D:\wtf
. First off all we have to change the working directory to the application's folder by typing cd/d c:\windows\System32\. Then we just write mspaint.exe and press Enter.
Deleting a folder in CMD
The DEL (Delete) is used to delete files within the directories you've created. To delete all the files from a directory you have to type del directory name. Let's try this command. For example, from the directory wtf located on the
d:
drive, we will delete all files from the wtf_tests folder by typing the command del wtf_tests. You need to confirm the delete process by typing the letter y and then press Enter. However you should remember you are to change the directory from c: to d: as the case may be. Here is a list of useful DEL combinations that is worth mentioning:
- DEL *.DOC - delete all files with the DOC extension(you can use any file extension necessary);
- DEL Test*.* - delete all files beginning with Test;
- DEL *.* - delete ALL files from the current directory.
You can make a new directory using the MKDIR (Make Directory) command. The syntax of this command is MKDIR directory name.
Let's say we need to create a new folder called wtf_v1 that will be placed in the 'd:\wtf' folder. We will type mkdir wtf_v1 and then we press Enter.
To get a list of some other commands in cmd just type "HELP" in command prompt. Sample below;
Troubleshooting windows 8/8.1
No comments:
Post a Comment