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

Help Topics on Windows PowerShell
How to get help information on conceptual topics in Windows PowerShell? I want to understand the concept of environment variables. The Get-Help cmdlet also displays information about conceptual topics in Windows PowerShell, including topics about the Windows PowerShell language. Conceptual Help topi...
2016-11-08, 1867🔥, 0💬

What Is Windows PowerShell Cmdlet
What is Windows PowerShell Cmdlet? A cmdlet is a lightweight command that is used in the Windows PowerShell environment. The Windows PowerShell runtime invokes these cmdlets within the context of automation scripts that are provided at the command line. The Windows PowerShell runtime also invokes th...
2016-11-05, 1867🔥, 0💬

Execution Status and Errors in Windows PowerShell Scripts
How to check execution status and errors in Windows PowerShell scripts? PowerShell provides 2 automatic variables to help you checking execution status and errors: 1. $? variable - The $? variable contains the execution status of the last operation. It contains TRUE if the last operation succeeded a...
2016-10-27, 1852🔥, 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, 1844🔥, 0💬

Finding the Disk Location of an Outlook 2010 Data File
How to find out the location of my Outlook 2010 Data File in the hard disk? I created it long time ago and forget where I stored it. Find the localtion of an Outlook Data File (.pst) on the hard disk is easy: 1. Right-mouse click the data file, for example: "Invoices". 2. Select the "Open File Locat...
2014-04-27, 1841🔥, 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, 1837🔥, 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&gt;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, 1835🔥, 0💬

What Is String in Windows PowerShell
What is a string in Windows PowerShell? A string is a sequence of characters in Windows PowerShell. If a sting is encoded in ASCII format, each character occupies a single byte. But if a string is encoded in UTF-8 format, a character may occupy multiple bytes. So the number of characters in a string...
2016-10-20, 1828🔥, 0💬

Run Script with Arguments in Windows PowerShell
How to write a script that take argument from the command line in Windows PowerShell? You can use the automatic variable $Args to take arguments from the command line where the script is launched. The $Args variable contains an array of all argument provided at the command line where this script was...
2016-10-27, 1825🔥, 0💬

String Comparison in Windows PowerShell
How to compare two strings in Windows PowerShell? Windows PowerShell supports the following string comparison operations: -eq - Equal to -ne - Not equal to -gt - Greater than -ge - Greater than or equal to -lt - Less than -le - Less than or equal to -Like - Match with wildcard characters ? and * -No...
2016-10-19, 1820🔥, 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, 1816🔥, 0💬

Help Commands on Windows PowerShell
How many ways to use Help commands on Windows PowerShell? Windows PowerShell supports a number of ways to use the Help commands described below get-help Displays help information about the help system. get-help &lt;cmd&gt; Displays summary information about the given command, like "get-help ...
2016-11-08, 1815🔥, 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, 1812🔥, 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, 1810🔥, 0💬

Array in Windows PowerShell Scripts
What is an array in Windows PowerShell scripts? An array in Windows PowerShell is a simple data structure where pieces of data are stored in as elements in the structure in an ordered sequence. In an array, each element can be identified by the sequence index. You can create an array of objects by l...
2016-10-29, 1801🔥, 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, 1786🔥, 0💬

Rename Directory or File in Windows PowerShell
How to rename a directory or file in Windows PowerShell? Can I use the old "ren" command? Yes, you can still use the old "ren" command in Windows PowerShell. But "ren" is defined as an alias of the "Rename-Item" cmdlet. The "Rename-Item" cmdlet changes the name of a specified item, for example a dir...
2016-10-24, 1784🔥, 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, 1782🔥, 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, 1781🔥, 0💬

Windows PowerShell Session with Remote Computers
What is a Windows PowerShell session? A session is an environment where you can run Windows PowerShell commands and scripts. Windows systems supports two types of sessions for Windows PowerShell: 1. Default Sessions - Sessions implicitly created by the local computer, when you start Windows PowerShe...
2016-10-17, 1773🔥, 0💬

Delete Directory or File in Windows PowerShell
How to delete a directory or file to a new location in Windows PowerShell? Can I use the old "del" command? Yes, you can still use the old "del" command in Windows PowerShell. But "del" is defined as an alias of the "Remove-Item" cmdlet. The "Remove-Item" cmdlet deletes one or more items, like direc...
2016-10-22, 1768🔥, 0💬

"call" Command Help Reference
How to get "call" command help reference? You can run the "call /?" command to get "call" command help reference as shown below: C:\fyicenter&gt;call /? Calls one batch program from another. CALL [drive:][path]filename [batch-parameters] batch-parameters Specifies any command-line information re...
2021-10-10, 1766🔥, 0💬

"goto" Command Help Reference
How to get "goto" command help reference? You can run the "goto /?" command to get "goto" command help reference as shown below: C:\fyicenter&gt;goto /? Directs cmd.exe to a labeled line in a batch program. GOTO label label Specifies a text string used in the batch program as a label. You type a...
2021-08-01, 1766🔥, 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, 1763🔥, 0💬

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