<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/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>Πρώτα Βήματα - Γλώσσες προγραμματισμού</title><link>https://www.dotnetzone.gr:443/cs/forums/74/ShowForum.aspx</link><description>Τα πρώτα βήματα στις γλώσσες VB6, VB.NET, και C#</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: User Rights</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/60685.aspx</link><pubDate>Wed, 27 Oct 2010 17:36:12 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:60685</guid><dc:creator>Firebrand</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/60685.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=60685</wfw:commentRss><description>&lt;P&gt;Thanx a lot!&lt;/P&gt;</description></item><item><title>Απ: User Rights</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/60684.aspx</link><pubDate>Wed, 27 Oct 2010 07:27:52 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:60684</guid><dc:creator>eliasm</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/60684.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=60684</wfw:commentRss><description>&lt;P style="MARGIN:0cm 0cm 10pt;" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;&lt;SPAN style="mso-ansi-language:EL;"&gt;Αν και δεν το προτείνω (γιατί κάτι τέτοια βλέπουν οι &lt;/SPAN&gt;IT&lt;SPAN style="mso-ansi-language:EL;"&gt; &lt;/SPAN&gt;Pros&lt;SPAN style="mso-ansi-language:EL;"&gt; και μας κράζουν)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt; sid &lt;SPAN style="COLOR:blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR:blue;"&gt;New&lt;/SPAN&gt; Security.Principal.&lt;SPAN style="COLOR:#2b91af;"&gt;SecurityIdentifier&lt;/SPAN&gt;(&lt;SPAN style="COLOR:#a31515;"&gt;"S-1-1-0"&lt;/SPAN&gt;) &lt;SPAN style="COLOR:green;"&gt;'sid &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:green;FONT-SIZE:9.5pt;mso-ansi-language:EL;"&gt;για&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:green;FONT-SIZE:9.5pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:green;FONT-SIZE:9.5pt;"&gt;Everyone&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt; acnt &lt;SPAN style="COLOR:blue;"&gt;As&lt;/SPAN&gt; System.Security.Principal.&lt;SPAN style="COLOR:#2b91af;"&gt;NTAccount&lt;/SPAN&gt; = &lt;SPAN style="COLOR:blue;"&gt;CType&lt;/SPAN&gt;(sid.Translate(&lt;SPAN style="COLOR:blue;"&gt;GetType&lt;/SPAN&gt;(System.Security.Principal.&lt;SPAN style="COLOR:#2b91af;"&gt;NTAccount&lt;/SPAN&gt;)), System.Security.Principal.&lt;SPAN style="COLOR:#2b91af;"&gt;NTAccount&lt;/SPAN&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;mso-ansi-language:EL;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt; newRule &lt;SPAN style="COLOR:blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR:blue;"&gt;New&lt;/SPAN&gt; Security.AccessControl.&lt;SPAN style="COLOR:#2b91af;"&gt;FileSystemAccessRule&lt;/SPAN&gt;(acnt, Security.AccessControl.&lt;SPAN style="COLOR:#2b91af;"&gt;FileSystemRights&lt;/SPAN&gt;.FullControl, Security.AccessControl.&lt;SPAN style="COLOR:#2b91af;"&gt;AccessControlType&lt;/SPAN&gt;.Allow)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt; dir &lt;SPAN style="COLOR:blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="COLOR:blue;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="COLOR:#a31515;"&gt;"C:\Test"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt;&lt;SPAN style="COLOR:#a31515;"&gt;&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;COLOR:blue;FONT-SIZE:9.5pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt; dirSec &lt;SPAN style="COLOR:blue;"&gt;As&lt;/SPAN&gt; System.Security.AccessControl.&lt;SPAN style="COLOR:#2b91af;"&gt;DirectorySecurity&lt;/SPAN&gt; = &lt;SPAN style="COLOR:blue;"&gt;New&lt;/SPAN&gt; System.Security.AccessControl.&lt;SPAN style="COLOR:#2b91af;"&gt;DirectorySecurity&lt;/SPAN&gt;(dir, Security.AccessControl.&lt;SPAN style="COLOR:#2b91af;"&gt;AccessControlSections&lt;/SPAN&gt;.All)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT:normal;MARGIN:0cm 0cm 0pt;mso-layout-grid-align:none;" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY:Consolas;FONT-SIZE:9.5pt;"&gt;dirSec.AddAccessRule(newRule)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;</description></item><item><title>User Rights</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/60679.aspx</link><pubDate>Tue, 26 Oct 2010 22:16:30 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:60679</guid><dc:creator>Firebrand</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/60679.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=74&amp;PostID=60679</wfw:commentRss><description>&lt;P&gt;Γεια χαρά σε όλους.&lt;/P&gt;
&lt;P&gt;Πως μπορώ με κώδικα VB.net να βάλω user rights (Everyone και Full Control σε ένα folder)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ευχαριστώ.&lt;/P&gt;</description></item></channel></rss>