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

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, ∼2669🔥, 0💬

Hashtable in Windows PowerShell Scripts
What is a hashtables of objects in Windows PowerShell scripts? A hashtables in Windows PowerShell is a data structure where pieces of data are stored in the structure as key-value members. The value of a member represents the data, and the key of a member provides a name for the data. Hashtable keys...
2016-10-29, ∼2669🔥, 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, ∼2668🔥, 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&gt;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, ∼2660🔥, 0💬

Use CON to Display Data on Screen
How to use CON file name to display data on the screen? Since CON is a special file name referring to the console including screen, you can use it display data on the screen. You can use the "copy * con" to act like the "type *" command: C:\fyicenter&gt;copy random.bat con @echo %random% 1 file(...
2021-04-02, ∼2656🔥, 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, ∼2652🔥, 0💬

"Get-Job" Cmdlet in Windows PowerShell
How to use "Get-Job" cmdlet in Windows PowerShell? You can use the "Get-Job" cmdlet to display existing Windows PowerShell background job on the local computer. Below is an example of "Get-Job" cmdlet displaying background jobs: PS C:\fyicenter&gt; start-job {get-process} Id Name PSJobTypeName S...
2016-10-08, ∼2633🔥, 0💬

Invoke Object Methods in Windows PowerShell Scripts
How to invoke methods of an object in Windows PowerShell scripts? I know the method name in Windows PowerShell scripts. If you know the method name of an object, you can invoke and run the method using the "." operator. For example, if you run the following script: $today = Get-Date $tomorrow = $tod...
2016-11-02, ∼2627🔥, 0💬

Moving Outlook 2010 Calendar Items to Data File
How to move Outlook 2010 calendar items to a data file? I have so many old calendar items and want to move them to a data file to save space. Moving calendar items from your Outlook calendar to a data file requires the following steps: 1. Right-mouse click on the data file name, for example "Chess C...
2014-05-05, ∼2624🔥, 0💬

String Replacement in Windows PowerShell
How to replace a part of a string in Windows PowerShell? You can use the "-Replace" operation to replace a part of a string in Windows PowerShell. Here is the syntax of the "-Replace" operation: $subject -Replace $pattern,$replacement Regular expression is supported in $pattern. Here are some good e...
2016-10-19, ∼2616🔥, 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, ∼2615🔥, 0💬

Application Command in Pipeline in Windows PowerShell
Can I use application commands in cmdlet pipeline in Windows PowerShell? Yes, you can use application commands in cmdlet pipeline in Windows PowerShell. But you need to remember a couple of things: 1. The output of an application command will be considered as a String object, not a sequence of chara...
2016-11-04, ∼2608🔥, 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, ∼2604🔥, 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, ∼2601🔥, 0💬

Pixel Sizes of Commonly Used Devices
What are pixel sizes of commonly used devices? Pixel sizes of commonly used devices: 640 × 480 - Old VGA computer screen 640 × 1136 - iPhone 5 screen 1024 x 768 - iPad screen 1280 × 720 - HDTV display 1600 x 900 - Laptop computer screen 3840 x 2160 - UHDTV display 8192 × 4608 - Cinema projection
2013-11-11, ∼2593🔥, 0💬

Wildcard Character In File Names
What are wildcard characters in file names? wildcard characters in file names are special characters that Windows will them as match patterns to search for files. If any matches found, the given file name will be replaced with matched file names. Many Windows commands support two wildcard characters...
2021-04-15, ∼2580🔥, 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, ∼2573🔥, 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, ∼2573🔥, 0💬

Assign Object to Variable in Windows PowerShell Scripts
How to assign an object to a variable in Windows PowerShell scripts? The output object of a cmdlet can be assigned to a variable using the assignment operator "=". Remember, variable names must start with the "$" sign. So here is an example of assign a DateTime object to a variable: $now = Get-Date ...
2016-11-02, ∼2556🔥, 0💬

Use NUL to Sink Program Output
How to use the NUL file name to sink program output? If a program is writing too much out on your screen, you sink all output to the NUL file name. For example, if you run JMeter program, it will write some output on your screen: C:\&gt;\fyicenter\jmeter\b in\jmeter&gt; nul =================...
2021-04-15, ∼2547🔥, 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, ∼2533🔥, 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, ∼2528🔥, 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, ∼2517🔥, 0💬

Object Type Match in Pipeline in Windows PowerShell
What will happen if the output object type does not match the input object type in a cmdlet pipeline in Windows PowerShell? When you build a cmdlet pipeline, you have to make sure that object types are compatible in the pipeline operation. In other words, the output object type from the previous cmd...
2016-11-04, ∼2500🔥, 0💬

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