<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results for 'sectionid:201' matching tag 'Alias'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=sectionid%3A201&amp;tag=Alias&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'sectionid:201' matching tag 'Alias'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Alias for any program</title><link>http://powershell.com/cs/forums/thread/14769.aspx</link><pubDate>Sun, 19 Feb 2012 06:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:14769</guid><dc:creator>Bush</dc:creator><description>&lt;p&gt;I want to create alias for some programs. It is fulfilled successfully:&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;br /&gt;Set-Alias edit &amp;quot;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;quot;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="hps"&gt;Now the command&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="hps"&gt;&amp;#39;edit&amp;#39;&lt;/span&gt;&lt;span&gt;&amp;nbsp;was run&amp;nbsp;&lt;/span&gt;&lt;span class="hps"&gt;.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="hps"&gt;I am doing&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="hps"&gt;the export&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="hps"&gt;alias &amp;#39;&lt;/span&gt;notepad++.exe&amp;#39; in it PowerShell session. I want export my aliaces:&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;br /&gt;Export-Alias -Path &amp;quot;$Home\Documents\MyAliases.txt&amp;quot;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;It happens successfully.&lt;/p&gt;
&lt;p&gt;Now I restart PowerShell, and do import my settings:&lt;/p&gt;
&lt;p&gt;&lt;blockquote style="overflow-x: scroll;"&gt;&lt;pre style="margin: 0px;"&gt;&lt;br /&gt;Import-Alias -Path &amp;quot;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;quot; -Force&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;But I get error message:&lt;/p&gt;
&lt;p&gt;[quote]&lt;/p&gt;
&lt;p&gt;PS C:\Users\user&amp;gt; Import-Alias -Path &amp;quot;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;quot; -Force&lt;/p&gt;
&lt;p&gt;Import-Alias : Cannot import an alias because line number 1 in the file &amp;#39;C:\Program Files (x86)\Notepad++\notepad++.exe&lt;/p&gt;
&lt;p&gt;&amp;#39; is not a properly formatted CSV line for aliases. Change the line so that it contains four values separated by commas&lt;/p&gt;
&lt;p&gt;. If the value contains a comma, then the value must be quoted.&lt;/p&gt;
&lt;p&gt;At line:1 char:13&lt;/p&gt;
&lt;p&gt;+ Import-Alias &amp;lt;&amp;lt;&amp;lt;&amp;lt; &amp;nbsp;-Path &amp;quot;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;quot; -Force&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: ReadError: (C:\Program File...+\notepad++.exe:String) [Import-Alias], FormatException&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : ImportAliasFileFormatError,Microsoft.PowerShell.Commands.ImportAliasCommand&lt;/p&gt;
&lt;p&gt;PS C:\Users\user&amp;gt;&lt;/p&gt;
&lt;p&gt;[/quote]&lt;/p&gt;
&lt;p&gt;In exported file it row such:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;edit&amp;quot;,&amp;quot;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;None&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I tried to add inverted commas, but it hasn&amp;#39;t helped.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Variant 1:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;edit&amp;quot;,&amp;quot;&amp;#39;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;#39;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;None&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Variant 2:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;edit&amp;quot;,&amp;#39;&amp;quot;C:\Program Files (x86)\Notepad++\notepad++.exe&amp;quot;&amp;#39;,&amp;quot;&amp;quot;,&amp;quot;None&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;div style="top:0px;left:0px;display:none;" id="-chrome-auto-translate-plugin-dialog"&gt;
&lt;div&gt;
&lt;div class="translate"&gt;&lt;/div&gt;
&lt;div class="additional"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;img style="-webkit-border-radius:20px;" src="http://www.google.com/uds/css/small-logo.png" alt="" /&gt;&lt;/div&gt;</description></item><item><title>Aliases</title><link>http://powershell.com/cs/forums/thread/11176.aspx</link><pubDate>Sun, 03 Jul 2011 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:11176</guid><dc:creator>RedaDZ</dc:creator><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I have got a question regarding aliases:&amp;nbsp; I have seen in some examples where people use alieas to cmdlets like the following example:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Courier;font-size:xx-small;"&gt;&lt;span style="font-family:Courier;font-size:xx-small;"&gt;
&lt;p&gt;PS (1) &amp;gt; get-date&lt;/p&gt;
&lt;p&gt;&amp;nbsp;or &lt;/p&gt;
&lt;p&gt;PS (2) &amp;gt; get-process&lt;/p&gt;
&lt;p&gt;My question is what&amp;#39;s the number between paretheses means? Can you explain me please?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>