<?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>.NET Framework</title><link>https://www.dotnetzone.gr:443/cs/forums/14/ShowForum.aspx</link><description>Θέματα για threading, remoting, reflection, exception handling, security, regex κλπ.</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9233.aspx</link><pubDate>Sun, 05 Feb 2006 01:10:48 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9233</guid><dc:creator>Mitsaras</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9233.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9233</wfw:commentRss><description>Το πρόβλημα με τον κώδικα που αντέγραψα από το site, εντοπίζεται ακριβώς εδώ:&lt;br&gt;&lt;br&gt;    'iDrive = The drive number to format. Drive A=0, B=1 (if present, otherwise C=1), and so on.&lt;br&gt;    SHFormatDrive(Me.Handle.ToInt32, 0, SHFD_CAPACITY_DEFAULT, SHFD_FORMAT_QUICK)&lt;br&gt;&lt;br&gt;Drive number? Μπρρρρ.... Θέλει ιδιαίτερη προσοχή και ελέγχους για να μη γίνει η στραβή.</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9232.aspx</link><pubDate>Sun, 05 Feb 2006 00:57:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9232</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9232.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9232</wfw:commentRss><description>Σας ευχαριστώ πολύ ;-)</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9194.aspx</link><pubDate>Fri, 03 Feb 2006 22:42:02 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9194</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9194.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9194</wfw:commentRss><description>No prob.. η παρατήρησή μου ήτανε για να μην μπερδευτεί κανένας.. &lt;img src="/cs/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9191.aspx</link><pubDate>Fri, 03 Feb 2006 20:53:51 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9191</guid><dc:creator>spantos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9191.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9191</wfw:commentRss><description>Καλύτερο από το 1ο δικό μου, δεν είχα δεί ότι είχε παρεμβληθεί και άλλο μύνημα εν τω μεταξύ...</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9189.aspx</link><pubDate>Fri, 03 Feb 2006 20:45:21 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9189</guid><dc:creator>Panagiotis Kefalidis</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9189.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9189</wfw:commentRss><description>Όχι ακριβώς και τόσο καλύτερο παράδειγμα.. έτσι ξεκινάς καινούργιο process για να κάνεις format ενώ το άλλο γίνεται κατευθείαν με API Call..Το αποτέλεσμα πάντως είναι το ίδιο.&lt;img src="/cs/emoticons/emotion-1.gif" alt="Smile [:)]" /&gt;</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9188.aspx</link><pubDate>Fri, 03 Feb 2006 20:14:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9188</guid><dc:creator>spantos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9188.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9188</wfw:commentRss><description>Ένα καλύτερο παράδειγμα...&lt;br&gt;&lt;br&gt;Process newProcess = new Process(); &lt;br&gt;newProcess.StartInfo.RedirectStandardOutput = true; &lt;br&gt;newProcess.StartInfo.UseShellExecute = false; &lt;br&gt;newProcess.StartInfo.FileName = "format.com"; //Στα XP είναι .com και όχι .exe&lt;br&gt;newProcess.StartInfo.Arguments = ""; //βάλε τα arguments εδώ π.χ. /q for quick format&lt;br&gt;newProcess.Start(); &lt;br&gt;StreamReader sr = newProcess.StandardOutput; &lt;br&gt;Debug.WriteLine(sr.ReadToEnd()); &lt;br&gt;</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9186.aspx</link><pubDate>Fri, 03 Feb 2006 19:58:31 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9186</guid><dc:creator>Mitsaras</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9186.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9186</wfw:commentRss><description>Εγγενώς, μέσω του framework, δε γίνεται. Αλλά μπορείς να το κάνεις με τον εξής τρόπο:&lt;br&gt;http://64.233.179.104/search?q=cache:SwDnf6VSbk8J:www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21673533.html+vb.net+format+drive&amp;amp;hl=en&amp;amp;ct=clnk&amp;amp;cd=2&amp;amp;client=firefox-a&lt;br&gt;
&lt;br&gt;
Αντιγράφω και τον κώδικα που έχει εκεί, μια και το experts-exchange
απαιτεί συνδρομή για να δεις τις απαντήσεις, οπότε και το παραπάνω Link
μπορεί να μη δουλέψει. Ο κώδικας είναι σε VB:&lt;br&gt;
&lt;br&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;#region &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"Vars &amp;amp; Consts"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Const&lt;/span&gt; SHFD_CAPACITY_DEFAULT &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 0 &lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' default drive capacity&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Const&lt;/span&gt; SHFD_FORMAT_QUICK &lt;span style="color: Red;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; 0 &lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;' quick format&lt;/span&gt;&lt;br /&gt;#&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; region&lt;br /&gt;#Region &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"P/INVOKE"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Private&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Declare&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Function&lt;/span&gt; SHFormatDrive _&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Lib&lt;/span&gt; &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"shell32"&lt;/span&gt; (&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; hwnd &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Long&lt;/span&gt;, _&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; Drive &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Long&lt;/span&gt;, _&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; fmtID &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Long&lt;/span&gt;, _&lt;br /&gt;        &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;ByVal&lt;/span&gt; options &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Long&lt;/span&gt;) &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;As&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Long&lt;/span&gt;&lt;br /&gt;#&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; region&lt;br /&gt;#Region &lt;span style="color: #666666;background-color: #e4e4e4;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;"Format Methods"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;public&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;sub&lt;/span&gt; FormatA() &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;as&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;sub&lt;/span&gt;&lt;br /&gt;    &lt;span style="color: Green;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;'iDrive = The drive number to format. Drive A=0, B=1 (if present, otherwise C=1), and so on.&lt;/span&gt;&lt;br /&gt;    SHFormatDrive(&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;Me&lt;/span&gt;.Handle.ToInt32, 0, SHFD_CAPACITY_DEFAULT, SHFD_FORMAT_QUICK)&lt;br /&gt;&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;sub&lt;/span&gt;&lt;br /&gt;#&lt;span style="color: Blue;background-color: Transparent;font-family: Lucida Console;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; region&lt;/span&gt;&lt;br&gt;&lt;br&gt;Δεν έχω δοκιμάσει ο ίδιος τον κώδικα, οπότε δε μπορώ να εγγυηθώ ότι θα δουλέψει.&lt;br&gt;</description></item><item><title>Απ: Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9185.aspx</link><pubDate>Fri, 03 Feb 2006 19:55:08 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9185</guid><dc:creator>spantos</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9185.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9185</wfw:commentRss><description>Μπορείς να ξεκινήσεις το format χρησιμοποιόντας την&lt;br&gt;System.Diagnostics.Process proc = System.Diagnostics.Process.Start("format", "/?"); [C#]&lt;br&gt;και να παρακολουθείς το αποτέλεσμα από το StandardOutput property του αντικειμένου.</description></item><item><title>Format HDD</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/9183.aspx</link><pubDate>Fri, 03 Feb 2006 19:24:48 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:9183</guid><dc:creator>Ioannis P</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/9183.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=14&amp;PostID=9183</wfw:commentRss><description>Ψάχνω αλλά δεν μπορώ να βρω, κάποιο παράδειγμα για το πως θα κάνω μέσα από vb.net 2003 quick format σε partition. Έχει δει κανένας κάτι;&lt;br&gt;</description></item></channel></rss>