Changes

Jump to: navigation, search
no edit summary
</pre>
The interactive shell prompt consists of the letter letters ''PS'' to indicate that the user is working within the PowerShell, followed by the current working directory. The prompt is terminated with a '>' character after which the cursor appears awaiting user input. The current working directory indicates that any file system based operations will take place relative to that directory on the file system. Typing the ''dir'' or ''ls'' command, therefore, will provide a listing of files and sub-directories in the current working directory (C:\Users\Administrator) in this case:
<pre>
== PowerShell Command Line Editing Keys ==
PowerShell provides a number of special key sequences which that speed the task of creating and editing commands in the interactive shell, each of which is outlined in the following table:
<table border="1" cellpadding="5" cellspacing="0" id="E3B" style="border-collapse: collapse; border-color:#cccccc; border-style: solid; border-width: 1px; margin-bottom:20px">
After a few characters of a command, parameter, file name, variable or variable property have been entered at the PowerShell command line prompt, the Tab key may be pressed to instruct PowerShell to complete the remainder of the entry. For example, if the first few characters of a command have been entered, PowerShell will try to find the best match for a command and fill in the remainder of the command name. If the command selected by PowerShell is not the correct one, pressing the Tab key repeatedly will cycle through all the possible matches until the correct one is displayed. Similarly, if a partial file name is entered followed by the Tab key, PowerShell will populate the command line with file name from the current directory. If, once again, the first match displayed by PowerShell is not the desired file, the Tab key can be pressed repeatedly until the correct match is displayed.
Tab completion is particularly useful for finding the properties and methods of a variable. As an example, suppose a variable named ''$mynumber'' is assigned a numerical value and we want to find out what the type of that value is. We assume there must be a method we can call on on the varaible variable to get the type but do not know what that method is called. To cycle through the available methods we simply enter the name of the variable, followed by a ''.'' character and then the first few characters of the method (we are assuming it will begin with ''Get''), We then press the ''Tab'' key until we find the method that does what we need, in this case, ''GetType()'':
<pre>
* '''Colors''' - The foreground and background colors of both the screen and any popups.
 
<google>BUY_WPS_BOTTOM</google>

Navigation menu