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

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. ...
2022-05-08, 13884👍, 4💬

💬 2022-05-08 idk: im cant open it as bat file

💬 2022-04-06 Akash Singh: Good

Batch Parameter Modifiers
What Are Batch Parameter Modifiers? Batch parameter modifiers are special functions that you can apply to batch parameters to modify their values. Here is a list batch parameter modifiers presented in formats for the 1 parameter. But you can use them on any of %0, %1, %2, ..., %9. %~1 - expands %1 r...
2022-04-13, 1689👍, 0💬

"shift" - Shift Batch Parameters
What is the "shift" batch command for? The "shift" command is for shift values of batch parameters downward by one position. Below is the "shift" command syntax: shift When the "shift" command is executed, values of batch parameters will be shift downward by one position. In other words, the value o...
2022-04-13, 1325👍, 0💬

Working with Parameters and Variables
Where to find introduction information on Working with Parameters and Variables? Here is a collection of tutorials compiled by FYIcenter.com team to provide introduction information on Working with Parameters and Variables. What Are Batch Parameters Batch Parameter Modifiers Get Batch File Path Name...
2022-04-13, 1151👍, 0💬

"for" - Loop on List of Files
What is the "for" batch command for? The "for" command is for running a given command for each item in a list of files, path names, or any values. Below is the "for" command syntax: for %%parameter in (list) do command When the "for" command is executed, the given command will be executed once for e...
2022-04-13, 1026👍, 0💬

What Are Batch Parameters
What Are Batch Parameters? Batch parameters are parameters received from the command line where the batch file is invoked. There are total of 11 batch parameters supported a batch file using the "%n" format: %0 - The file name of this batch file. %1, %2, %3, ..., %9 - The first, second, third, ..., ...
2022-04-13, 963👍, 0💬

Get Batch Parameter as File Path
How to get path name components of a batch file parameter? A file name is passed as the parameter. If a batch parameter represents a file name, you can use batch parameter modifiers on %1, %2 or others, to get its file patch components. Here is a batch file, Batch-Parameter-Modifiers.bat, that dumps...
2022-03-06, 2301👍, 1💬

💬 2022-03-06 Gg: Windows System and Application Information Center http://windows.fyicenter.com/ A large collection FAQs, tutorials and tips for ...

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, 3178👍, 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, 1244👍, 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>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, 1169👍, 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, 1144👍, 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>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, 1135👍, 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>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, 1096👍, 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>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, 1074👍, 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, 1028👍, 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, 2477👍, 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, 1342👍, 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, 1317👍, 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, 1159👍, 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, 1043👍, 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, 1172👍, 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, 1153👍, 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, 1152👍, 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, 1104👍, 0💬

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