Top "Cmd" questions

Command Prompt (executable name cmd.

Batch file: Find if substring is in string (not in a file)

In a batch file, I have a string abcdefg. I want to check if bcd is in the string. Unfortunately …

windows batch-file cmd substring
Running CMD command in PowerShell

I am having a bunch of issues with getting a PowerShell command to run. All it is doing is running …

powershell command-line cmd
How do i get a list of folders and sub folders without the files?

I am trying to print a list of the folders and sub folders of a directory to a file. When …

cmd directory subdirectory
How do I echo and send console output to a file in a bat script?

I have a batch script that executes a task and sends the output to a text file. Is there a …

windows batch-file cmd
Windows equivalent of 'touch' (i.e. the node.js way to create an index.html)

On a windows machine I get this error 'touch' is not recognized as an internal or external command, operable program …

cmd
How to automatically close cmd window after batch file execution?

I'm running a batch file that has these two lines: start C:\Users\Yiwei\Downloads\putty.exe -load "MathCS-labMachine1" "C:\…

batch-file cmd
What is the proper way to test if a parameter is empty in a batch file?

I need to test if a variable is set or not. I've tried several techniques but they seem to fail …

windows shell batch-file cmd
How to do something to each file in a directory with a batch script

How do you iterate over each file in a directory with a .bat or .cmd file? For simplicity please provide …

windows file loops batch-file cmd
Windows equivalent to UNIX pwd

How do I find the local path on windows in a command prompt?

windows cmd pwd
How to do a simple file search in cmd

I want to quickly search for a file given its name or part of its name, from the windows command …

windows command-line cmd