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-10-11, 23740👍, 5💬

💬 2022-10-11 jonathan: it will not display my message what do i do

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

💬 2022-04-06 Akash Singh: Good

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...
2022-08-30, 1623👍, 1💬

💬 2022-08-30 Jimmy: All this info, all in one place has been perfect, accurate, jargon free and it's enjoyable! Cheers - just wish I found you soone...

File Name and File Path
Where to find introduction information on File Name and File Path? Here is a collection of tutorials compiled by FYIcenter.com team to provide introduction information on File Name and File Path. What Is File Name File Name with or without Drive Letter File Name with Relative Path or Absolute Path F...
2022-08-26, 1280👍, 0💬

What Is File Name
What is a file name on Windows system? A file name, also becoming one word now: filename, on a Windows system is a string that identifies a storage resource that you can retrieve data from it or store data in in. On Windows system, a file name contains multiple components listed below: Drive letter ...
2022-08-26, 1180👍, 0💬

File Name with or without Drive Letter
Should I provide file name with or without drive letter? When provide a file name, you have choice of providing or not providing the drive letter: 1. If you provide a file name with the drive letter, the system will go to the given disk drive to locate the file. Providing the drive letter is a good ...
2022-08-26, 1177👍, 0💬

Run Second Command If the First Fails
How to run two commands with a condition that the second one will run only if the first one fails? You can run two commands with a condition that the second one will run only if the first one fails with the syntax below: command-1 || command-2 For example, if you want to write a message to the scree...
2022-08-26, 1132👍, 0💬

"goto" - Change the Execution Flow
What is the "goto" batch command for? The "goto" command is for changing the execution flow in a batch file. Below is the "if" command syntax: goto label When the "goto" command is executed, the execution will jump to the line where "label" is defined and continue to execution the line after the "la...
2022-08-26, 1124👍, 0💬

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, 1920👍, 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, 1484👍, 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, 1238👍, 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, 1108👍, 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, 1049👍, 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, 2890👍, 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, 3703👍, 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, 1419👍, 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, 1291👍, 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, 1257👍, 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, 1239👍, 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, 1201👍, 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, 1167👍, 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, 1145👍, 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, 2630👍, 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, 1455👍, 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, 1411👍, 0💬

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