As stated update: following is accurate as to output, but NOT as to the process. See jwkrahn's (above) and BrowserUK's (below).
on w2k w/ perl, v5.8.8 built for MSWin32-x86-multi-thread (with 33 registered patches) ... Binary build 819 [267479] provided by ActiveState....

C:\Documents and Settings\ww>perl -e "my $dir=system(dir);print $dir Volume in drive C has no label. Volume Serial Number is 704A-B003 Directory of C:\Documents and Settings\ww 01/03/2010 06:29a <DIR> . 01/03/2010 06:29a <DIR> .. 07/16/2007 06:03a 107 .bps 12/29/2009 07:46p <DIR> .gimp-2.6 08/13/2007 11:40a <DIR> .housecall6.6 12/23/2009 10:55a 1,480 .recently-used.xbel 11/14/2009 10:44a <DIR> .thumbnails ... #more files and dirs 02/16/2008 11:37a <DIR> Start Menu 06/29/2007 10:15p 145 t.net-1.bps 06/29/2007 10:13p 145 t.net.bps 20 File(s) 8,026,977 bytes 10 Dir(s) 6,957,117,440 bytes free 0 C:\Documents and Settings\ww>

In reply to Re^3: find CD drive letter by ww
in thread find CD drive letter by Baphi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.