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

"Stop-Job" Cmdlet in Windows PowerShell
How to use "Stop-Job" cmdlet in Windows PowerShell? You can use the "Stop-Job" cmdlet to stop (terminate) the execution of an existing background job by using the "-id n" or "-name xxx" to specify the background job. The output result of the stopped background job will stay in memory. Here is an exa...
2016-10-08, ∼3305🔥, 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, ∼3292🔥, 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, ∼3292🔥, 0💬

What Is File System in Windows PowerShell
What is a file system from the Windows PowerShell point of view? A file system represents a logical tree of directories and files to store information on an device outside the computer CPU. For example, a hard disk drive can be considered as a filesystem. There are several interesting features suppo...
2016-10-27, ∼3288🔥, 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, ∼3281🔥, 0💬

Picture Qualities of Camera/Phone
What are picture quality levels supported by my cell phone or camera? Since most cameras/phones save pictures in JPG/JPEG file format, the "Photo/Picture Quality" setting is really referring to the quality level during the JPG/JPEG compression process when saving pictures in the camera or phone. In ...
2013-11-04, ∼3279🔥, 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, ∼3263🔥, 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, ∼3255🔥, 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, ∼3255🔥, 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, ∼3246🔥, 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, ∼3246🔥, 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, ∼3225🔥, 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, ∼3219🔥, 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, ∼3204🔥, 0💬

File Name with or without File Extension
Should I provide file name with or without File Extension? To provide file name with or without file extension is really depending on the program that you are providing the file to. Here are some examples on different programs behaving differently on file names with and without file extension. 1. Wi...
2021-04-15, ∼3194🔥, 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, ∼3184🔥, 0💬

Screen saver or background slide show
Is there anyway I get the file location option that is used in windows XP screen saver or slide show back and install it in Win-Vista, Win-7 or Win-10??? I have over 39,000 pictures in my computer and when I see a good picture that screen saver or background slide show is playing and I don't recogni...
2015-09-29, ∼3175🔥, 0💬

Execution Loops in Windows PowerShell Scripts
How to write execution loops in Windows PowerShell scripts? I want to repeat some code multiple times. There are several ways to write execution loops in Windows PowerShell scripts. 1. "While {...}" loop - For example: $today = Get-Date "Today is "+$today.DayOfWeek $next = $today.AddDays(1) While ($...
2016-10-29, ∼3153🔥, 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, ∼3142🔥, 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, ∼3131🔥, 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, ∼3122🔥, 0💬

Pipe STDOUT of Previous Command as STDIN of Next
How to redirect (or pipe) STDOUT stream from the first command as STDIN stream of the next command? If you want to pipe two commands together by redirecting the STDOUT stream of the first command as the STDIN stream of the second command, you can use the pipe redirection operator "|" as shown below:...
2021-05-15, ∼3105🔥, 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, ∼3097🔥, 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, ∼3089🔥, 0💬

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