<< < 1 2 3 4 5 6 7 8 > >>   Sort: Rank

"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&gt;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, 1754🔥, 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&gt;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, 1685🔥, 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&gt;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, 1560🔥, 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, 3650🔥, 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, 3284🔥, 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, 2019🔥, 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, 1941🔥, 0💬

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, 2152🔥, 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, 2051🔥, 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, 2717🔥, 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, 4217🔥, 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, 7253🔥, 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 &amp; command-2 For example, the following command line run the "echo" command twice sequentially: C:\fyicenter&gt;echo Hello &am...
2021-05-15, 3536🔥, 0💬

Combine Output Streams with &gt;&amp;
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, 2326🔥, 0💬

Use Handler Numbers with &lt;, &gt;, &gt;&gt;
How to use input and output stream handler numbers with &lt;, &gt;, and &gt;&gt; redirections? When &lt;, &gt;, and &gt;&gt; redirections are used without handler numbers, a default input or output stream is used as described below: &lt; Redirects handler 0 (STDIN...
2021-05-15, 2122🔥, 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, 1524🔥, 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, 1426🔥, 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:\&gt;\fyicenter\jmeter\b in\jmeter&gt; nul =================...
2021-04-15, 1651🔥, 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, 1546🔥, 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, 1539🔥, 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, 1490🔥, 0💬

Use CON to Enter Data to File
How to use CON file name to enter data to a file quickly? I don't want to use any editors. Since CON is a special file name referring to the console including keyboard, you can use it with the "copy" command to enter data to a file. For example, if you want to create small batch file called "random....
2021-04-02, 2300🔥, 0💬

"call command" vs. "command"
What is the difference between "call command" and "command" in a batch file? There are two formats to run another batch file (or any command) in a batch file: 1. "command" - Run the batch file (or any command) directly. The given command will be invoked in the current batch execution context. 2. "ca...
2021-04-02, 1874🔥, 0💬

Use CON to Display Data on Screen
How to use CON file name to display data on the screen? Since CON is a special file name referring to the console including screen, you can use it display data on the screen. You can use the "copy * con" to act like the "type *" command: C:\fyicenter&gt;copy random.bat con @echo %random% 1 file(...
2021-04-02, 1752🔥, 0💬

<< < 1 2 3 4 5 6 7 8 > >>   Sort: Rank