Top "Cmd" questions

Command Prompt (executable name cmd.

Displaying Windows command prompt output and redirecting it to a file

How can I run a command-line application in the Windows command prompt and have the output both displayed and redirected …

batch-file cmd stdout tee
'ls' in CMD on Windows is not recognized

When I tried to use list ls on a Windows command prompt, the system doesn't recognize it. I already added …

windows cmd ls
Windows batch files: .bat vs .cmd?

As I understand it, .bat is the old 16-bit naming convention, and .cmd is for 32-bit Windows, i.e., starting …

windows batch-file cmd
Logical operators ("and", "or") in DOS batch

How would you implement logical operators in DOS Batch files?

batch-file cmd logical-operators windows-console
How to verify if a file exists in a batch file?

I have to create a .BAT file that does this: If C:\myprogram\sync\data.handler exists, exit; If C:\…

windows batch-file cmd
Using parameters in batch files at Windows command line

In Windows, how do you access arguments passed when a batch file is run? For example, let's say I have …

windows batch-file cmd parameters arguments
How do I measure execution time of a command on the Windows command line?

Is there a built-in way to measure execution time of a command on the Windows command line?

windows batch-file time cmd windows-server-2003
What is the Windows equivalent of the diff command?

I know that there is a post similar to this : here. I tried using the comp command like it mentioned, …

windows cmd diff
Set a path variable with spaces in the path in a Windows .cmd file or batch file

I'm new to script writing and can't get this one to work. I could if I moved the files to …

batch-file path variables cmd space
How to use ADB Shell when Multiple Devices are connected? Fails with "error: more than one device and emulator"

$ adb --help -s SERIAL use device with given serial (overrides $ANDROID_SERIAL) $ adb devices List of devices attached emulator-5554 device 7…

android shell cmd adb android-debug