1 2 3 4 5 6 > >>   Sort: Rank

"mkdir" Command Help Reference
How to get "mkdir" command help reference? You can run the "mkdir /?" command to get "mkdir" command help reference as shown below: C:\fyicenter>mkdir /? Creates a directory. MKDIR [drive:]path MD [drive:]path If Command Extensions are enabled MKDIR changes as follows: MKDIR creates any inter...
2021-08-01, 1045👍, 0💬

"if" Command Help Reference
How to get "if" command help reference? You can run the "if /?" command to get "if" command help reference as shown below: C:\fyicenter>if /? Performs conditional processing in batch programs. IF [NOT] ERRORLEVEL number command IF [NOT] string1==string2 command IF [NOT] EXIST filename command...
2021-08-01, 987👍, 0💬

"goto" Command Help Reference
How to get "goto" command help reference? You can run the "goto /?" command to get "goto" command help reference as shown below: C:\fyicenter>goto /? Directs cmd.exe to a labeled line in a batch program. GOTO label label Specifies a text string used in the batch program as a label. You type a...
2021-08-01, 946👍, 0💬

"for" Command Help Reference
How to get "for" command help reference? You can run the "for /?" command to get "for" command help reference as shown below: C:\fyicenter>for /? Runs a specified command for each file in a set of files. FOR %variable IN (set) DO command [command-parameters] %variable Specifies a single lette...
2021-08-01, 906👍, 0💬

Batch File Structure and Syntax
What is the batch file structure? What are basic syntax rules for a batch file? Here are some basic syntax rules about the structure of a batch file: 1. Batch files are text files. 2. Empty lines are allowed. 3. Comments can be entered using the "rem" command. 4. ":label" can be used to label an exe...
2021-07-10, 1415👍, 0💬

"echo on|off" - Control Echo Setting
How to change the default echo behavior with the "echo on|off" command? By default, when a command is executed in a batch file, the command will be echoed on the screen before the execution. But this behavior can be changed by running the "echo" command. 1. "echo on" - Change the setting to echo all...
2021-07-10, 1115👍, 0💬

%1 and %* - Receive Parameters in Batch File
How to receive parameters in batch file? If a batch file is invoked with parameters, you receive them in special variables: %0 - The file name of this batch file. %1, %2, %3, ... - The first, second, third, ..., parameters provided when this batch file was invoked. %* - All parameters in a single st...
2021-07-10, 1077👍, 0💬

"@" - Stop Echoing the Command
How to stop echoing the command when running in a batch file? By default, when a command is executed in a batch file, the command will be echoed on the screen before the execution. You can stop this default behavior by starting the line with @ as shown in this batch file, quiet.bat: rem Public comme...
2021-07-10, 988👍, 0💬

Hello.bat - First Batch File
How to write a batch file? I want to print "Hello world!" message on the screen. You can follow this tutorial to write your first batch file to print a message on the screen. 1. Open "Notepad" to create a file called, \fyicenter\Hello.bat, with the following commands: @echo off echo Hello world! 2. ...
2021-07-02, 4680👍, 1💬

Quotation without the Closing Mark
What will happen if a quotation is missing the closing mark in a batch parameter? I entered 3 quotation marks (double quotes) in the command line. If a quotation is missing the closing mark in a batch parameter, that parameter will be extended to the end of the line. Quotations have higher precedenc...
2021-07-02, 1251👍, 1💬

cmd.exe - Command Prompt Program
Where to find introduction information on the Command Prompt Program: cmd.exe? Here is a collection of tutorials compiled by FYIcenter.com team to provide introduction information on the Command Prompt Program: cmd.exe. What Is cmd.exe Program Start cmd.exe Command Prompt Run cmd.exe at the Command ...
2021-07-02, 1161👍, 1💬

What Is cmd.exe Program
What is cmd.exe program? cmd.exe program, also called Command Prompt, is the command-line interpreter on Windows operating systems. Normally, cmd.exe is executed in interactive mode to give you a window where you can enter and execute one command at a time. When cmd.exe is executed in interactive mo...
2021-07-02, 1688👍, 1💬

Start cmd.exe Command Prompt
How to start the cmd.exe command prompt window? The quickest way to start the cmd.exe command prompt window is to type in "cmd" in the Windows search box and hit "Enter". You see the cmd.exe command prompt window showing up. The picture below shows you how to start command prompt window on Windows 7...
2021-07-02, 2165👍, 1💬

Escape Double Quote in Batch Parameter
Is there any way to escape the double quote in a batch parameter? I really want to enter a double quote as part of the parameter. The answer is no. There is no way you can escape the double quote in a batch file parameter. Double quotes are reserved by Windows to form quotations to protect space cha...
2021-07-02, 2501👍, 1💬

Run Two Commands Sequentially
How to run two commands sequentially in a single command line? You can run two commands sequentially in a single command line with the syntax below: command-1 & command-2 For example, the following command line run the "echo" command twice sequentially: C:\fyicenter>echo Hello &am...
2021-05-15, 1533👍, 0💬

Use Handler Numbers with <, >, >>
How to use input and output stream handler numbers with <, >, and >> redirections? When <, >, and >> redirections are used without handler numbers, a default input or output stream is used as described below: < Redirects handler 0 (STDIN...
2021-05-15, 1070👍, 0💬

Combine Output Streams with >&
How to use the duplication redirection to combine one output stream into another output stream? I want to combine STDERR and STDIN together and send them to a file. To combine one output stream into another output stream, you can use the duplication redirection operator as described below: command o...
2021-05-15, 1043👍, 0💬

Input and Output Stream Handler Numbers
What are input and output stream handler numbers? Input and output stream handler numbers are integers assigned to represent input and output streams. The list below shows you how handler numbers are assigned to different input and output streams: Handler Number Stream 0 STDIN 1 STDOUT 2 STDERR 3 To...
2021-05-15, 899👍, 0💬

Pipe STDOUT of Previous Command as STDIN of Next
How to redirect (or pipe) STDOUT stream from the first command as STDIN stream of the next command? If you want to pipe two commands together by redirecting the STDOUT stream of the first command as the STDIN stream of the second command, you can use the pipe redirection operator "|" as shown below:...
2021-05-15, 863👍, 0💬

Use NUL to Sink Program Output
How to use the NUL file name to sink program output? If a program is writing too much out on your screen, you sink all output to the NUL file name. For example, if you run JMeter program, it will write some output on your screen: C:\>\fyicenter\jmeter\b in\jmeter> nul =================...
2021-04-15, 1082👍, 0💬

File Name with Relative Path or Absolute Path
Should I provide file name with Relative Path or Absolute Path? When provide a file name, you have choice of using relative path or absolute path: 1. If you provide a file name with an absolute path, the system will go to the directory of the given path to locate the file. Providing an absolute path...
2021-04-15, 1045👍, 0💬

File Name with or without File Extension
Should I provide file name with or without File Extension? To provide file name with or without file extension is really depending on the program that you are providing the file to. Here are some examples on different programs behaving differently on file names with and without file extension. 1. Wi...
2021-04-15, 1002👍, 0💬

Special File Names Used by Windows
What are special file names used by Windows? Windows used a number of special file names referring to special resources in the system: CON - Referring to the console: keyboard and screen. Reading from CON is reading from the keyboard. Writing to CON is writing to the screen. PRN - Referring to the p...
2021-04-15, 959👍, 0💬

Wildcard Character In File Names
What are wildcard characters in file names? wildcard characters in file names are special characters that Windows will them as match patterns to search for files. If any matches found, the given file name will be replaced with matched file names. Many Windows commands support two wildcard characters...
2021-04-15, 877👍, 0💬

1 2 3 4 5 6 > >>   Sort: Rank