[Mono-list] Simple code - differences in output between mono & .Net

jonathan.cooper@syntegra.com jonathan.cooper@syntegra.com
Wed, 3 Mar 2004 14:57:07 -0000


This is a multi-part message in MIME format.

------_=_NextPart_001_01C4012F.CC89969A
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Ah, that would explain it.
=20
Shall I continue with the bug submission?

	-----Original Message-----
	From: Nick Berardi [mailto:nberardi@zigamorph.com]=20
	Sent: 03 March 2004 14:55
	To: COOPER, Jonathan -Syntegra UK; mono-list@lists.ximian.com
	Subject: RE: [Mono-list] Simple code - differences in output between
mono & .Net
=09
=09

	I was right here is your problem:

	=20

	=20
	                [MonoTODO("Implement on windows, for real")]
	                public static string[] GetLogicalDrives ()
	                {=20
	                        //FIXME: Hardcoded Paths
	                        if ((int)Environment.OSVersion.Platform =3D=3D
128)
	                                return new string[] { "/" };
	                        else
	                                return new string [] { "A:\\", "C:\\"
};
	                }

	=20

	=20

=09
  _____ =20


	From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of
jonathan.cooper@syntegra.com
	Sent: Wednesday, March 03, 2004 9:32 AM
	To: mono-list@lists.ximian.com
	Subject: [Mono-list] Simple code - differences in output between mono
& .Net

	=20

	I have code (at the end of this message) in a .cs file, compiled with
mcs and csc on Windows XP. When compiled with either compiler the executable
works on both runtimes (.Net and mono). However, the output is different.

	Run under .Net:=20
	------------------------=20
	Disk:  A:\=20
	Disk:  C:\=20
	Disk:  D:\=20
	Disk:  K:\=20
	Disk:  L:\=20
	Disk:  Q:\=20
	Disk:  T:\=20
	Disk:  U:\=20
	Disk:  X:\=20
	c:\=20
	Dir:  c:\Compaq=20
	Dir:  c:\Config.Msi=20
	Dir:  c:\Documents and Settings=20
	Dir:  c:\Program Files=20
	Dir:  c:\RECYCLER=20
	Dir:  c:\System Volume Information=20
	Dir:  c:\WINNT=20

	=20

	Basically the contents of the root c:\ drive=20

	Run under mono:=20
	--------------------------=20
	Disk:  A:\=20
	Disk:  C:\=20
	c:\=20
	>> a list of directories in the current directory rather than the
root c:\ <<=20

	Is this due to an incomplete feature, or am I missing something?=20

	Thanks in advance,=20
	Jon Cooper=20

	=20

	------------------------ CODE in drives.cs ------------------------=20

	using System;=20
	using System.IO;=20

	namespace test=20
	{=20
	   class test=20
	   {=20
	      [STAThread]=20
	      static void Main(string[] args)=20
	      {=20
	         string[] s =3D Directory.GetLogicalDrives();=20
	         foreach(string drive in s)=20
	            Console.WriteLine("Disk:  {0}",drive);=20

	         string mydrive =3D Console.ReadLine();=20

	         if(mydrive.Length !=3D 0)=20
	         {=20
	           foreach(string d in Directory.GetDirectories(mydrive))=20
	              Console.WriteLine("Dir:  {0}",d);=20

	           Console.Read();  //pause=20
	         }=20
	      }=20
	   }=20
	}=20

=09
=09
	********************************************************************
=09
	This email may contain information which is privileged or
confidential. If you are not the intended recipient of this email, please
notify the sender immediately and delete it without reading, copying,
storing, forwarding or disclosing its contents to any other person
	Thank you
=09
	Check us out at http://www.syntegra.com
=09
	********************************************************************



********************************************************************

This email may contain information which is privileged or confidential. If =
you are not the intended recipient of this email, please notify the sender =
immediately and delete it without reading, copying, storing, forwarding or =
disclosing its contents to any other person
Thank you

Check us out at http://www.syntegra.com

********************************************************************


------_=_NextPart_001_01C4012F.CC89969A
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D=20
"urn:schemas-microsoft-com:vml" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR><!--[if !mso]>
<STYLE>v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name=3D"place"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagTyp=
e><!--[if !mso]>
<STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times =
New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
CODE {
	FONT-FAMILY: "Courier New"
}
PRE {
	FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle19 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D126425614-03032004><FONT face=3DArial color=3D#0000ff si=
ze=3D2>Ah,=20
that would explain it.</FONT></SPAN></DIV>
<DIV><SPAN class=3D126425614-03032004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D126425614-03032004><FONT face=3DArial color=3D#0000ff si=
ze=3D2>Shall=20
I continue with the bug submission?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft><FO=
NT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> Nick Be=
rardi=20
  [mailto:nberardi@zigamorph.com] <BR><B>Sent:</B> 03 March 2004=20
  14:55<BR><B>To:</B> COOPER, Jonathan -Syntegra UK;=20
  mono-list@lists.ximian.com<BR><B>Subject:</B> RE: [Mono-list] Simple code=
 -=20
  differences in output between mono &amp; .Net<BR><BR></FONT></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I was right he=
re is=20
  your problem:<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o=
:p></SPAN></FONT></P><PRE><FONT face=3D"Courier New" size=3D2><SPAN style=
=3D"FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></PRE><PRE><FONT face=
=3D"Courier New" size=3D2><SPAN style=3D"FONT-SIZE: 10pt"> &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[MonoTODO("Implement on windows, for=
 real")]<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face=3D"Courier New" size=
=3D2><SPAN style=3D"FONT-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp;public static string[] GetLogicalDrives ()<o:p></o:p></SP=
AN></FONT></PRE><PRE><FONT face=3D"Courier New" size=3D2><SPAN style=3D"FON=
T-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ <o:=
p></o:p></SPAN></FONT></PRE><PRE><FONT face=3D"Courier New" size=3D2><SPAN =
style=3D"FONT-SIZE: 10pt">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//FIXME: Hardcoded Paths<o:p></o:p>=
</SPAN></FONT></PRE><PRE><FONT face=3D"Courier New" size=3D2><SPAN style=3D=
"FONT-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp;if ((int)Environment.OSVersion.Platform =3D=3D 1=
28)<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face=3D"Courier New" size=3D2>=
<SPAN style=3D"FONT-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return=
 new string[] { "/" };<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face=3D"Cou=
rier New" size=3D2><SPAN style=3D"FONT-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else<o:p></o:p>=
</SPAN></FONT></PRE><PRE><FONT face=3D"Courier New" size=3D2><SPAN style=3D=
"FONT-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return new string []=
 { "A:\\", "C:\\" };<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face=3D"Couri=
er New" size=3D2><SPAN style=3D"FONT-SIZE: 10pt"> &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp;}<o:p></o:p></SPAN></FONT></PRE>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o=
:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o=
:p></SPAN></FONT></P>
  <DIV>
  <DIV class=3DMsoNormal style=3D"TEXT-ALIGN: center" align=3Dcenter><FONT=
   face=3D"Times New Roman" size=3D3><SPAN style=3D"FONT-SIZE: 12pt">
  <HR tabIndex=3D-1 align=3Dcenter width=3D"100%" SIZE=3D2>
  </SPAN></FONT></DIV>
  <P class=3DMsoNormal><B><FONT face=3DTahoma size=3D2><SPAN=20
  style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</=
SPAN></FONT></B><FONT=20
  face=3DTahoma size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahom=
a">=20
  mono-list-admin@lists.ximian.com [mailto:mono-list-admin@lists.ximian.com=
]=20
  <B><SPAN style=3D"FONT-WEIGHT: bold">On Behalf Of=20
  </SPAN></B>jonathan.cooper@syntegra.com<BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, March 03, 2004 9:=
32=20
  AM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
  mono-list@lists.ximian.com<BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> [Mono-list] Simple code -=
   differences in output between mono &amp;=20
  .Net</SPAN></FONT><o:p></o:p></P></DIV>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P><FONT face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMIL=
Y: Arial">I=20
  have code (at the end of this message) in a .cs file, compiled with mcs a=
nd=20
  csc on Windows XP. When compiled with either compiler the executable work=
s on=20
  both runtimes (.Net and mono). However, the output is=20
  different.</SPAN></FONT><o:p></o:p></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Run under .Net:</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">------------------------</S=
PAN></FONT>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; A:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; C:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; D:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; K:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; L:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; Q:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; T:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; U:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; X:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">c:\</SPAN></FONT> <BR><FONT=
   face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial=
">Dir:&nbsp;=20
  c:\Compaq</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dir:&nbsp;=20
  c:\Config.Msi</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dir:&nbsp; c:\Documents and=
   Settings</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dir:&nbsp; c:\Program=20
  Files</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dir:&nbsp;=20
  c:\RECYCLER</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dir:&nbsp; c:\System Volume=
   Information</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Dir:&nbsp; c:\WINNT</SPAN><=
/FONT>=20
  <o:p></o:p></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Basically the contents of t=
he root=20
  c:\ drive</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Run under mono:</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">--------------------------<=
/SPAN></FONT>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; A:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Disk:&nbsp; C:\</SPAN></FON=
T>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">c:\</SPAN></FONT> <BR><FONT=
   face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial=
">&gt;&gt; a=20
  list of directories in the current directory rather than the root c:\=20
  &lt;&lt;</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is this due to an incomplet=
e=20
  feature, or am I missing something?</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in advance,</SPAN></=
FONT>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Jon Cooper</SPAN></FONT>=20
  <o:p></o:p></P>
  <P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">------------------------ CO=
DE in=20
  drives.cs ------------------------</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">using System;</SPAN></FONT>=
   <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">using System.IO;</SPAN></FO=
NT>=20
  <o:p></o:p></P>
  <P><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">namespace test</SPAN></FONT=
>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">{ </SPAN></FONT><BR><FONT=
   face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp; class=20
  test</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp; {</SPAN></FONT=
>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
  [STAThread]</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
  static void <st1:place w:st=3D"on">Main</st1:place>(string[] args)=20
  </SPAN></FONT><BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
  {</SPAN></FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT=
   face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial=
"> string[]=20
  s =3D Directory.GetLogicalDrives();</SPAN></FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=3DArial=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> foreach(str=
ing drive=20
  in s)</SPAN></FONT> <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT=
   face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;=20
  Console.WriteLine("Disk:&nbsp; {0}",drive);</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;</SPAN></FONT><FONT=20
  face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"=
> string=20
  mydrive =3D Console.ReadLine();</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;</SPAN></FONT><FONT=20
  face=3DArial size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"=
>=20
  if(mydrive.Length !=3D 0)</SPAN></FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=3DArial=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> {</SPAN></F=
ONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial size=3D=
2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp; foreach(string=
 d in=20
  Directory.GetDirectories(mydrive))</SPAN></FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial size=3D=
2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
  Console.WriteLine("Dir:&nbsp; {0}",d);</SPAN></FONT> <o:p></o:p></P>
  <P><FONT face=3D"Times New Roman" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  </SPAN></FONT><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp; Console.Read()=
;&nbsp;=20
  //pause</SPAN></FONT>=20
  <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=3DArial=20
  size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"> }</SPAN></F=
ONT>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
  }</SPAN></FONT> <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp; }</SPAN></FONT=
>=20
  <BR><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">}</SPAN></FONT> <o:p></o:p>=
</P>
  <P class=3DMsoNormal><FONT face=3D"Courier New" size=3D3><SPAN=20
  style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Courier New'"><BR><BR><CODE><FONT=
   face=3D"Courier New">***************************************************=
*****************</FONT></CODE><BR><BR><CODE><FONT=20
  face=3D"Courier New">This email may contain information which is privileg=
ed or=20
  confidential. If you are not the intended recipient of this email, please=
   notify the sender immediately and delete it without reading, copying, st=
oring,=20
  forwarding or disclosing its contents to any other=20
  person</FONT></CODE><BR><CODE><FONT face=3D"Courier New">Thank=20
  you</FONT></CODE><BR><BR><CODE><FONT face=3D"Courier New">Check us out at=
   http://www.syntegra.com</FONT></CODE><BR><BR><CODE><FONT=20
  face=3D"Courier New">****************************************************=
****************</FONT></CODE></SPAN></FONT><o:p></o:p></P></DIV></BLOCKQUO=
TE><CODE><FONT SIZE=3D3><BR>
<BR>
********************************************************************<BR>
<BR>
This email may contain information which is privileged or confidential. If =
you are not the intended recipient of this email, please notify the sender =
immediately and delete it without reading, copying, storing, forwarding or =
disclosing its contents to any other person<BR>
Thank you<BR>
<BR>
Check us out at http://www.syntegra.com<BR>
<BR>
********************************************************************<BR>
</FONT></CODE>
</BODY></HTML>
=00
------_=_NextPart_001_01C4012F.CC89969A--