<< < 7 8 9 10 11 12 13 >   Sort: Date

Use Cmdlet Pipeline in Windows PowerShell
How to use cmdlet pipeline in Windows PowerShell? You can use the pipeline operator "|" to combine multiple cmdlets into a sequence of executions. The pipeline operator will send the output from the previous cmdlet to the next cmdlet as the input. Here is the syntax of cmdlet pipeline: cmdlet-1 | cm...
2016-11-05, 1760🔥, 0💬

Work with Strings in Windows PowerShell
Where to find tutorials on how to work with strings in Windows PowerShell? Here is a collection of tutorials compiled by FYIcenter.com team on working strings in Windows PowerShell. What Is String in Windows PowerShell String Concatenation in Windows PowerShell Variable Expansion in Strings in Windo...
2016-10-20, 1759🔥, 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, 1757🔥, 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, 1750🔥, 0💬

Start Windows PowerShell ISE
How to start Windows PowerShell ISE? I want to try it. To start running Windows PowerShell ISE, after you install Windows PowerShell ISE, use one of the following options: On the Start page, type any part of the name Windows PowerShell ISE, and then click the Windows PowerShell ISE shortcut when it ...
2016-10-05, 1737🔥, 0💬

"call" - Run Another Batch File
What is the "call" batch command for? The "call" command is for running another batch file, command or program. Below is the "call" command syntax: call command parameters When the "call" command is executed, a child batch execution context will be created to run the given command with given paramet...
2021-04-02, 1735🔥, 0💬

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, 1734🔥, 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, 1723🔥, 0💬

Console Input and Output in Windows PowerShell Scripts
How to manage console input and output in Windows PowerShell scripts? I want to write a PowerShell script that "talks" with the user. You need to use the "Write-Host" and "Read-Host" cmdlets to manage console input and output. The "Write-Host" cmdlet allows to write information to the console with s...
2016-10-30, 1719🔥, 0💬

Cmdlet Output Object in Windows PowerShell
What is the output object of a cmdlet in Windows PowerShell? When PowerShell executes a cmdlet, it actually calls the .NET class that implements the cmdlet. When the cmdlet class finishes execution, it will return a data object to PowerShell. This allows PowerShell to: Pass the output object to the ...
2016-11-05, 1711🔥, 0💬

Run Second Command If the First Successful
How to run two commands with a condition that the second one will run only if the first one is successful? You can run two commands with a condition that the second one will run only if the first one is successful with the syntax below: command-1 &amp;&amp; command-2 For example, if you want...
2022-12-03, 1708🔥, 0💬

Default STDIN Stream for Command - Keyboard
What is the default STDIN stream for a command? Can I use the keyboard to enter data for the STDIN stream? By default, the STDIN stream for a command is mapped the keyboard. If the command is reading data from the STDIN stream, you can enter it from the keyboard. For example, the "SORT" command read...
2022-12-03, 1708🔥, 0💬

If-Else Conditions in Windows PowerShell Scripts
How to use if-else conditions in Windows PowerShell scripts? PowerShell script supports the following if-else code block to help you to perform tasks depending on logical conditions: If (conditin1) { task1 } Elseif (condition2) { task2 ... } Else { other-task } Here is a sample script on how to use ...
2016-10-30, 1708🔥, 0💬

Redirect STDOUT Stream for Command to File
How to redirect STDOUT stream from the screen to a file? I want the command to send output data to a file. By default, the STDOUT stream for a command is mapped the screen. If the command is writing data to the STDIN stream, you will see it on the screen. But, you can use the "&gt;" redirect ope...
2022-12-03, 1706🔥, 0💬

Logical Operations in Windows PowerShell Scripts
How to use logical (or Boolean) operations in Windows PowerShell scripts? Can I write "$a &gt; 0 AND $a &lt; 10"? No, you can not use "$a &gt; 0 AND $a &lt; 10" as a logical operation in Windows PowerShell scripts. You must use PowerShell logical operators given below: -and Logical A...
2016-10-30, 1698🔥, 0💬

Redirect STDOUT Stream to the End of File
How to redirect STDOUT stream from the screen to the end of a file? I want to append output from STDOUT stream to an existing file. When using the "&gt;" redirection to an existing file, old content of the file will be replaced. You can keep the old content of the file by using the append redire...
2022-12-03, 1695🔥, 0💬

Remote Computing Overview in Windows PowerShell
How to manage remote computers in Windows PowerShell? Windows PowerShell allows you to manage remote computers by using various technologies, including WMI, RPC, and WS-Management. You can run commands on one or hundreds of computers with a single Windows PowerShell command. Windows PowerShell offer...
2016-10-17, 1695🔥, 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, 1694🔥, 0💬

Cmdlet Pipeline Patterns in Windows PowerShell
Are there any usage patterns for cmdlet pipelines in Windows PowerShell? Yes, there are some usage patterns for cmdlet pipelines in Windows PowerShell. 1. Use cmdlets of the same noun in a single pipeline - This is to ensure that we are working on the same object type in the entire pipeline. For exa...
2016-11-04, 1693🔥, 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, 1692🔥, 0💬

Example of PowerShell Session on Remote Computer
Where to get an example of running PowerShell session on a remote computer? Here is a good example of running PowerShell session on a remote computer called office-server. The example assumes that the local computer and the remote computer are in the same domain, and you have a domain login name and...
2016-10-13, 1686🔥, 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, 1682🔥, 0💬

Introduction of Windows PowerShell Script
Where to find introduction information of Windows PowerShell script? Here is a collection of tutorials compiled by FYIcenter.com team to provide introduction information about Windows PowerShell script. Write Script File in Windows PowerShell Running Scripts Disabled in Windows PowerShell Add Commen...
2016-11-03, 1682🔥, 0💬

Loop Array Elements in Windows PowerShell Scripts
How to loop through all elements in an array in Windows PowerShell scripts? An array has a special property called "Length", which holds the length of the array or the number of members in the array. The "Length" property can help you to loop through all members using a simple "For {...}" loop as sh...
2016-10-29, 1682🔥, 0💬

<< < 7 8 9 10 11 12 13 >   Sort: Date