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.

3024 questions
31
votes
4 answers

Under cmd.exe, how can "del *.tmp" be prevented from deleting *.tmpl files?

Under Windows 10 cmd.exe, the command del *.tmp may silently delete files like project.tmpl. Is there some option, workaround, registry entry, or ritual sacrifice to prevent this? For the incredulous: on my machine, on which the C: drive was…
fgrieu
  • 766
8
votes
3 answers

'ping' is not recognized as an internal or external command operable program or batch file error

When I type these: ping yahoo.com or ping -n or ipconfig The answer is just this 'ping' is not recognized as an internal or external command operable program or batch file or 'ipconfig' is not recognized as an internal or external…
mona
  • 91
5
votes
4 answers

cmd Copy command to multiple folders

I want to copy a file from one folder to another folder which has many sub-folders. Using command line. How can I copy this file to all sub-folders. Eg. I have a file called Test.txt. I want to copy this file to another folder "Data", which has many…
5
votes
2 answers

Command .exe to obtain date in ISO format

How can get the ISO format date placed into an environment variable regardless of regional settings? Answers to related questions here suggest this will require a special .exe, so a source of that would be appreciated.
ChrisJJ
  • 371
4
votes
1 answer

How to run a python script with cmd.exe and make it invisible

How do I run an invisible cmd.exe command? Example: C:\Python27\tool.py and make it visible after a while? I tried some methods that I found on Google but I'm not very satisfied. I do not have administrative rights on this PC either if that…
4
votes
2 answers

find and replace text in a text file (including spaces!)

I have been using F.A.R.T and simple batch to edit a txt file with the out put of the net use command: in my text file in need to change often I have a defined path changeme\software\sql in the batch net use shows location of a shared folder on…
Tika9o9
  • 143
3
votes
1 answer

Hide GUI'd applications

Is it possible to completely hide the GUI of a program that cant run silently. I have manged to get my bat files to process hidden using the solution from the link below, but some of the batches call on GUI'd programs. I dont mind third party…
David
  • 129
3
votes
1 answer

How to sign an end of parameter line in windows cmd?

I have a program, named IsCmdBld.exe, which is doing some job for me. The problem is, when I'm trying to redirect its output to the log file on a disk, the program can't determine the end of the parameter line. Example: "IsCmdBld.exe" -p param1…
PaulD
  • 809
3
votes
1 answer

Shortcut for desktop in cmd

Is there any shortcut for desktop in windows command prompt ? (like %WINDIR% for windows directory) I want to use cd %DESKTOP% for example.
3
votes
2 answers

How to select all text in cmd output if there is too much text?

I run an application via cmd; after it is done I want to select all text from the start, but cmd will not let me do that. I already tried with Alt + Space and choice select all, and copy; however cmd just let me select all final text. The text is…
3
votes
0 answers

How do I change the blinking cursor color in Command Prompt?

In command prompt i need to know how to change the color of the white blinking cursor that stays in front of the letters.... aka the keyboard cursor and im on windows 10
b00tr
  • 31
  • 1
3
votes
1 answer

deleting file through CMD

I am trying to delete files through forfiles -p "E:\check" -s -m *.* -d -10 -c "cmd /c del /Q /S E:\check" But if there is a file that is more than 10 days old, it removes all files in the folder.
Shubham Gupta
  • 33
  • 1
  • 3
2
votes
0 answers

SchTask "Highest Privileges" Access Denied

I am attempting to create a scheduled task to run a batch file from the startup script. For some reason after the logon script runs and the scheduled task is created, the scheduled task will "run" but it does does not initiate the batch file. The…
2
votes
2 answers

Batch file change color of specific part of text

How could I change the color of a specific part of text within a .bat file? I currently have this: @echo off :a color 2 set /p command=$jp goto :%command% which produces a green "$jp". The text I type after that, hovewer is green too, I'd like…
2
votes
0 answers

How to get a list of available VPN connections on the system via the command line?

I'm trying get list of VPN connections configured in the system. Searching the internet found this command line: netsh interface show interface But it only shows network adapters, no VPN connections are shown. VPN connections were added using…
vanowm
  • 265
1
2 3 4 5 6 7 8