CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

New-Variable

PowerShell – How to create read-only and constant Variables?

PowerShell supports constant and read-only variables. We have discussed creating the variables in our previous Article “PowerShell – How to create Variables?“. Through this, we are going to discuss creating read-only and constant variables. Read-only variables are the variables whose content cannot be modified. Constant variables are the variables whose content also cannot be modified. […]

PowerShell – How to create Variables?

PowerShell allows us to create the variables. We use the “$” Symbol to create the variables. Through this Article, we will discuss defining the variables and PowerShell command(s) to support defining them. Create Variables in PowerShell Let’s take a simple example; PS C:\> $message = “Hello!” Here we have defined the variable $message and assigned […]

Scroll to top