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

Get Batch File Path Name Components
How to Get Batch File Path Name Components? I want to know the path name of the directory where the batch file is located. To get different components of the batch file path name, you can use batch parameter modifiers on %0, which represents the batch file name. Here is a batch file, Batch-File-Name...
2022-02-19, 8149🔥, 0💬

"for" Loop Parameter Modifiers
How to use "for" Loop Parameter Modifiers? Here is a batch file, For-Loop-Parameter.bat, that dumps the "for" loop parameter "%%p" with different modifiers: @echo off rem For-Loop-Parameter.bat - Show components of a for loop parameter for %%p in (%1) do ( echo ---------------- echo p = %%p echo ~p ...
2022-02-04, 2569🔥, 0💬

"del" Command Help Reference
How to get "del" command help reference? You can run the "del /?" command to get "del" command help reference as shown below: C:\fyicenter&gt;del /? Deletes one or more files. DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names names Specifies a ...
2022-02-04, 1986🔥, 0💬

"echo" Command Help Reference
How to get "echo" command help reference? You can run the "echo /?" command to get "echo" command help reference as shown below: C:\fyicenter&gt;echo /? Displays messages, or turns command-echoing on or off. ECHO [ON | OFF] ECHO [message] Type ECHO without parameters to display the current echo ...
2022-02-04, 1929🔥, 0💬

"dir" Command Help Reference
How to get "dir" command help reference? You can run the "dir /?" command to get "dir" command help reference as shown below: C:\fyicenter&gt;dir /? Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortor...
2022-02-04, 1862🔥, 0💬

What Is "for" Loop Parameter
What Is "for" Loop Parameter? A "for" loop parameter is a parameter defined in a "for" command to represent each item from a give list. A "for" loop parameter must be defined using the "%%name" format, where "name" can be any identifier string. Same parameter modifiers as batch parameters are also s...
2022-02-04, 1794🔥, 0💬

"copy" Command Help Reference
How to get "copy" command help reference? You can run the "copy /?" command to get "copy" command help reference as shown below: C:\fyicenter&gt;copy /? Copies one or more files to another location. COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+ ...]]...
2022-02-04, 1776🔥, 0💬

What Are Batch Variables
What What Are Batch Variables? Batch variables are variables that create, store value to and retrieve value from in a batch file. There are 3 ways a batch variable is defined: 1. Defined in the batch file using the "set" command. For example, "set java_home=\fyicenter\java" will define a new variabl...
2022-02-04, 1712🔥, 0💬

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, 3291🔥, 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&gt;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, 2198🔥, 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, 1944🔥, 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, 1862🔥, 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, 1699🔥, 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, 2776🔥, 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, 2556🔥, 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, 1848🔥, 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, 1759🔥, 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&gt;Pa...
2021-11-12, 1632🔥, 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, 2484🔥, 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&gt;call /? Calls one batch program from another. CALL [drive:][path]filename [batch-parameters] batch-parameters Specifies any command-line information re...
2021-10-10, 1796🔥, 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, 1573🔥, 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, 1516🔥, 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, 1477🔥, 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&gt;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, 2440🔥, 0💬

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