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

Manage Space in Command Name
How to manage space characters in the command name? If the command you want to run is an executable program and the program name or path has space characters, you have to enclose the command name between a pair of double quotes. For example, if you want to run the "7z.exe" program located in the "\P...
2022-01-16, 2075👍, 1💬

💬 2022-01-16 applicazioni web: = {}; // These are configuration // strength owasp.configs = { allowPassphrases: true, maxLength: 128, minLength: 10, minPhraseL...

Run cmd.exe Program with Options
What options are supported by the cmd.exe program? You can get a list of options supported by the cmd.exe program with the "cmd /?" command: C:\fyicenter>cmd /? Starts a new instance of the Windows command interpreter CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] ...
2021-12-28, 1179👍, 0💬

Run cmd.exe at the Command Prompt
Can I run cmd.exe program at the command prompt? Yes, you can run cmd.exe program at the command prompt. Basically, you are starting a child command prompt at the parent command prompt. You can use the "EXIT" command to terminate a command prompt. When the last command prompt is terminated, the comm...
2021-12-28, 1161👍, 0💬

Windows Command Syntax
Where to find introduction information on Windows Command Syntax? Here is a collection of tutorials compiled by FYIcenter.com team to provide introduction information on Windows Command Syntax. Basic Structure of Windows Command Manage Space in Command Name Manage Space in Command Option Default STD...
2021-12-28, 992👍, 0💬

Basic Structure of Windows Command
What are basic structure of a Windows command? The structure of a Windows command has 3 parts: name options redirections where: name - The name of a built-in command or a program options - A list of options separated by spaces redirections - A list of I/O redirection operations For example, if you w...
2021-12-28, 909👍, 0💬

Space - Delimiter for Batch File Parameters
What is the character to separate batch file parameters? When you specify parameters to invoke a batch file, the space character is used as the delimiter to separate parameters. For example, if you enter "Batch-File-Parameters.bat 1 2 3 4 5", you are providing 5 parameters to the batch file. Multipl...
2021-11-12, 1062👍, 0💬

Multiple Quotations in a Single Parameter
Can I have multiple quotations in a single parameter for a batch file? Yes, you can put multiple quotations in a single parameter for a batch file. Quotations also be started and ended anywhere in the parameter. Here are some examples on using quotations in a single parameter: C:\fyicenter>Pa...
2021-11-12, 1057👍, 0💬

Remove Quotation Marks from Parameters
How to Remove Quotation Marks from Parameters? If a parameter is passed in a quotation format, you can remove quotation marks by using the replacement function in the variable expansion expression in 3 steps: 1. Assign the parameter to a variable. For example, set x=%1 2. Update the variable with qu...
2021-11-12, 1042👍, 0💬

Use Quotation to Protect Space in File Name
How to Quotation to Protect Space in File Names to be passed as batch file parameters? If you want pass a file name or path name that has space characters as a single parameter to a batch file, you need to put the name in a quotation format (enclosed in a pair of double quotes). For example, the pat...
2021-11-12, 982👍, 0💬

Quotations in Batch File Parameters
How to use quotations in double-quote pairs in batch file parameters? Quotations in double-quote pairs in batch file parameters take higher precedence than space characters. So if a space character is inside a quotation, it will be taken as part of a parameter, not as a delimiter to separate paramet...
2021-11-12, 958👍, 0💬

What Are Batch Built-in Variables
What What Are Batch Built-in Variables? Batch built-in variables are variables that defined by the batch execution context: %CD% - expands to the current directory string. %DATE% - expands to current date using same format as DATE command. %TIME% - expands to current time using same format as TIME c...
2021-10-10, 1452👍, 0💬

Batch Command Help Reference Documents
Where to find introduction information on Batch Command Help Reference Documents? Here is a collection of tutorials compiled by FYIcenter.com team to provide introduction information on Batch Command Help Reference Documents. "call" Command Help Reference "copy" Command Help Reference "del" Command ...
2021-10-10, 1055👍, 0💬

"call" Command Help Reference
How to get "call" command help reference? You can run the "call /?" command to get "call" command help reference as shown below: C:\fyicenter>call /? Calls one batch program from another. CALL [drive:][path]filename [batch-parameters] batch-parameters Specifies any command-line information re...
2021-10-10, 1017👍, 0💬

String Variable Match and Replace
How to perform sub-string match and replacement in a string batch variable? You can perform a sub-string match and replacement in a string batch variable using the following variable modifier: %variable:pattern=str% Wildcard character "*" can be used in "pattern" to match any number of any character...
2021-10-10, 969👍, 0💬

Get Sub-String from Variable
How to get a sub-string from a string batch variable? You can get a sub-string from a string batch variable using the following variable modifier: %variable~i,l% In the above expression, "i" is the offset position of the sub-string to be extracted, and "l" is the length of the sub-string to be extra...
2021-10-10, 913👍, 0💬

"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, 1197👍, 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, 1123👍, 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, 1063👍, 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, 1006👍, 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, 1611👍, 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, 1328👍, 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, 1249👍, 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, 1162👍, 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, 6654👍, 1💬

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