Questions tagged [cmd.exe]

cmd.exe, or the Command Prompt, is the default command-line interpreter for many Microsoft-created operating systems.

From Wikipedia:

"Command Prompt" (executable name cmd.exe) is the Microsoft-supplied command-line interpreter (CLI) on OS/2, Windows CE and on Windows NT-based operating systems (including Windows 2000, XP, Vista, 7, Server 2003 and Server 2008). It is the analog of COMMAND.COM in MS-DOS and Windows 9x (and earlier) systems (where it is called "MS-DOS Prompt"), and analogous to the Unix shells used on Unix-like systems.

cmd.exe is the interpreter for Windows batch files (command files), which typically have the extension .bat or .cmd.

Resources:

Alternatives:

Alternative command-line apps that offer more features and customization which is not available in the standard Windows CMD.

2952 questions
371
votes
8 answers

How to recursively delete directory from command line in windows?

What is the windows equivalent of rm -r [directory-name]?
Eric Wilson
  • 7,868
  • 12
  • 41
  • 50
287
votes
14 answers

Grep equivalent for Windows 7?

Is there a command prompt grep equivalent for Windows 7? That is, I want to filter out the results of a command: Bash use: ls | grep root What would it be from a Windows command prompt?
chrisjlee
  • 3,980
  • 4
  • 22
  • 27
223
votes
8 answers

Typing “python” on Windows 10 (version 1903) command prompt opens Microsoft store

This is strange issue I have observed. I installed Active Python 2.7 on Windows 10 (version 1903). On typing “python” from search, opens the Python 2.7 prompt but when I type from command prompt window, it triggers the Microsoft Store. Don't know…
Dr. Essen
  • 2,502
  • 3
  • 11
  • 14
118
votes
5 answers

How to Delete a Junction by Using Command Prompt in Windows 7

I believe in Windows Vista, we could use linkd command. However, I cannot find this command in Windows 7. I know I can use Windows Explorer and delete the junction, but I wonder if this can be done in Command Prompt. I can use mklink command to…
Nord
  • 1,305
  • 2
  • 9
  • 7
101
votes
7 answers

How does the Windows RENAME command interpret wildcards?

How does the Windows RENAME (REN) command interpret wildcards? The built in HELP facility is of no help - it doesn't address wildcards at all. The Microsoft technet XP online help isn't much better. Here is all it has to say regarding…
dbenham
  • 11,194
  • 6
  • 30
  • 47
98
votes
9 answers

Turning off the cmd window beep sound

Is there a way to essentially mute the Beeping function of the Windows command shell? I'm working on a PowerShell script right now which ends up printing several lines of text to the screen. I'm working out a bug in the encoding logic. But every…
JaredPar
  • 1,271
  • 1
  • 8
  • 7
97
votes
2 answers

Why is DNS apparently involved in issuing "dir" on Windows 10?

For complicated reasons, I have been forced to make an identical copy of cmd.exe and rename it to cmd-2.exe, which I put as a shortcut on the Taskbar to have them "grouped" in different taskbar groups. Sometimes, I forget about this, and to open a…
Khalid
  • 739
  • 1
  • 5
  • 4
84
votes
9 answers

How to open Windows CMD so that it starts in the current folder?

When I'm working in a folder in Windows Explorer, sometimes I have a need to run some CMD command in this folder. How do I open the command line from a current folder, so the console opens in the current directory? Example: I work in D:\Apps\Test. I…
boleslaw.smialy
  • 883
  • 1
  • 7
  • 13
84
votes
2 answers

run powershell command from cmd

how i can run this command from cmd : powershell.exe "(get-process | ? {$_.Description -eq "Sysinter Process Explorer"}) | select processname | out-file $env:APPDATA\example.txt" i still get this error : You must provide a value expression on…
Qassam Mahmoud
  • 993
  • 1
  • 8
  • 10
79
votes
3 answers

Is typing %^ into cmd.exe a Windows easter egg?

When I typed %^ in cmd and pressed Enter, and it said: More? When I pressed Enter again, it gave the same response. Is this an Easter Egg? What is this?
undo
  • 5,961
  • 8
  • 41
  • 61
70
votes
2 answers

Why is my localhost not 127.0.0.1 but ::1, and what notation is that?

When I use the Ping command against my localhost (on Windows Vista), it doesn't show up as 127.0.0.1. C:\Windows\system32>ping localhost Pinging GIGA [::1] from ::1 with 32 bytes of data: Instead, it shows up as ::1 (pair of colons and a one).…
Samir
  • 20,527
  • 74
  • 166
  • 226
66
votes
6 answers

How to run multiple commands one after another in cmd

How to run Windows OS cmd.exe multiple commands one after another, I use ncrack, commands I manually open cmd.exe and I paste this code: ncrack --user Admin -P pass1.txt :3389 -oN good.txt -f When pass1.txt is finished I paste manually…
user466755
61
votes
7 answers

netstat with process name?

Using netstat -a -o -n I can get the list of ports and PID then I need to go to task manager and add the PID and see who is it. (pretty frustrating) I was wonder if there is a CMD command which does it all ( using find , for , powershell) so that…
Royi Namir
  • 5,598
  • 14
  • 47
  • 70
59
votes
4 answers

How to crop an image using ImageMagick from the command line?

I am trying to crop a 640x640 image using ImageMagick on the command line. I need to remove about 20 pixels from the bottom part of the image all the way from left to right. A long strip along the bottom. I know about the shave command. What would…
user2041357
55
votes
4 answers

How to copy a file to a directory in DOS, and create directories if necessary?

How can I copy a file using DOS commands into a directory structure that may not yet exist? I need to be able to force the creation of the directory path to the target file location if that location doesn't already exist. For example, there is…
nodmonkey
  • 553
  • 1
  • 4
  • 5
1
2 3
99 100